code: def test_with_tags():
      name = random_str()
      tag1 = RegisteredModelTag("key", "value")
      tag2 = RegisteredModelTag("randomKey", "not a random value")
      tags = [tag1, tag2]
      as_dict = {
          "name": name,
          "creation_timestamp": 1,
          "last_updated_timestamp": 4000,
          "description": random_str(),
          "latest_versions": [],
          "tags": tags,
          "aliases": {},
      }
      rmd_1 = RegisteredModel.from_dictionary(as_dict)
      as_dict["tags"] = {tag.key: tag.value for tag in (tags or [])}
      assert dict(rmd_1) == as_dict
      proto = rmd_1.to_proto()
      assert proto.creation_timestamp == 1
      assert proto.last_updated_timestamp == 4000
      assert {tag.key for tag in proto.tags} == {"key", "randomKey"}
      assert {tag.value for tag in proto.tags} == {
          "value",
          "not a random value",
      }
  
file_path: mlflow/tests/entities/model_registry/test_registered_model.py
imports: from mlflow.entities.model_registry import RegisteredModelAlias
  from mlflow.entities.model_registry.model_version import ModelVersion
  from mlflow.entities.model_registry.registered_model import RegisteredModel
  from mlflow.entities.model_registry.registered_model_tag import RegisteredModelTag
  from tests.helper_functions import random_str
label_desc: Use image node_id 4 for calling a global function with example usage: test_with_tags() without return types