def METHOD_NAME():
    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"}