code: def test_pyfunc_model_registry_with_file_store(store):
      import mlflow
      from mlflow.pyfunc import PythonModel
  
      class MyModel(PythonModel):
          def predict(self, context, model_input, params=None):
              return 7
  
      mlflow.set_registry_uri(
          path_to_local_file_uri(store.root_directory)
      )
      with mlflow.start_run():
          mlflow.pyfunc.log_model(
              python_model=MyModel(),
              artifact_path="foo",
              registered_model_name="model1",
          )
          mlflow.pyfunc.log_model(
              python_model=MyModel(),
              artifact_path="foo",
              registered_model_name="model2",
          )
          mlflow.pyfunc.log_model(
              python_model=MyModel(),
              artifact_path="foo",
              registered_model_name="model1",
          )
  
      with mlflow.start_run():
          mlflow.log_param("A", "B")
  
          models = store.search_registered_models(max_results=10)
          assert len(models) == 2
          assert models[0].name == "model1"
          assert models[1].name == "model2"
          mv1 = store.search_model_versions(
              "name = 'model1'", max_results=10
          )
          assert len(mv1) == 2
          assert mv1[0].name == "model1"
          mv2 = store.search_model_versions(
              "name = 'model2'", max_results=10
          )
          assert len(mv2) == 1
          assert mv2[0].name == "model2"
  
imports: import time
  import uuid
  from typing import List, NamedTuple
  from unittest import mock
  import pytest
  from mlflow.entities.model_registry import ModelVersion, ModelVersionTag, RegisteredModelTag
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, RESOURCE_DOES_NOT_EXIST, ErrorCode
  from mlflow.store.model_registry.file_store import FileStore
  from mlflow.utils.file_utils import path_to_local_file_uri, write_yaml
  from mlflow.utils.time import get_current_time_millis
  from tests.helper_functions import random_int, random_str
label_desc: Use image node_id 45 for calling a global function with example usage: test_pyfunc_model_registry_with_file_store(store) and returns: int