def unfake_json_ids(self, json_str):
        """
        Replace fake ids with actual ones in the JSON fixture

        Do this on the serialized JSON string since it's a simple string replace
        :param json_str:
        :return:
        """
        for fake_id, actual_id in self.fake_id_map.items():
            json_str = json_str.replace(fake_id, actual_id)

            # special-case: undo the replace for the djstripe_test_fake_id in metadata
            json_str = json_str.replace(
                f'"{FAKE_ID_METADATA_KEY}": "{actual_id}"',
                f'"{FAKE_ID_METADATA_KEY}": "{fake_id}"',
            )

        return json_str

        Replace fake ids with actual ones in the JSON fixture

        Do this on the serialized JSON string since it's a simple string replace
        :param json_str:
        :return:
        
tests/apps/example/management/commands/regenerate_test_fixtures.py