def METHOD_NAME(self, async_mode: bool) -> FileImport:
    METHOD_NAME = FileImport()
    imports_to_load = "async_imports" if async_mode else "sync_imports"
    for metadata_json in self.version_path_to_metadata.values():
        if not metadata_json.get("operation_mixins"):
            continue
        mixin_imports = metadata_json["operation_mixins"][imports_to_load]
        if mixin_imports != "None":
            current_version_imports = FileImport(json.loads(mixin_imports))
            METHOD_NAME.merge(current_version_imports)
    return METHOD_NAME