code: def rm_data(registered_model_names, tmp_path):
      rm_data = {}
      for name in registered_model_names:
          # create registered model
          rm_folder = tmp_path.joinpath(
              FileStore.MODELS_FOLDER_NAME, name
          )
          rm_folder.mkdir(parents=True, exist_ok=True)
          creation_time = get_current_time_millis()
          d = {
              "name": name,
              "creation_timestamp": creation_time,
              "last_updated_timestamp": creation_time,
              "description": None,
              "latest_versions": [],
              "tags": {},
          }
          rm_data[name] = d
          write_yaml(rm_folder, FileStore.META_DATA_FILE_NAME, d)
          tags_dir = rm_folder.joinpath(FileStore.TAGS_FOLDER_NAME)
          tags_dir.mkdir(parents=True, exist_ok=True)
      return rm_data
  
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 3 for calling a global function with example usage: rm_data(registered_model_names, tmp_path) and returns: rm_data