How to calculate the minial coincident interface area (MCIA) using pymatgen's SubstrateAnalyzer?

Hello. I have two material structures A and B, and I want to calculate the minimal coincident interface area (MCIA) between them. But I cannot use pymatgen’s SubstrateAnalyzer successfully. Could someone give me a code example?

I tried to follow the code in How to find the substrate for my own structure, but also failed. Perhaps the version of pymatgen used in that website is different from the current version.

Any answer would be very helpful to me. Thank you.