def METHOD_NAME() -> EntityInstance:
  entity = list(
      validator.Deserialize(['tests/samples/noncanonical_entity.yaml'
                             ])[0].values())[0]
  # Append the type to be checked by is_entity_canonical()
  entity.type = BuildUniverse(use_simplified_universe=True).GetEntityType(
      entity.namespace, entity.type_name)
  return entity