Python: query the face_id that assigned with material

Can we use Python to query the face_id that assigned with material in UE?
example: material A is assigned to faces [0, 1, 5]