def METHOD_NAME(self, file_info: Mapping[str, Any]) -> None:
    file_info_instance = FileInfo(key=file_info["filepath"], size=os.stat(file_info["filepath"]).st_size, last_modified=datetime.now())
    with smart_open(file_info["filepath"], self._get_readmode(file_info)) as f:
        if "test_get_inferred_schema" in file_info["fails"]:
            with pytest.raises(Exception) as e_info:
                file_info["AbstractFileParser"].get_inferred_schema(f), file_info_instance
                self.logger.debug(str(e_info))
        else:
            assert file_info["AbstractFileParser"].get_inferred_schema(f, file_info_instance) == file_info["inferred_schema"]