@lru_cache()
def get_by_name(self, name):
    '\n        :rtype: datacube.model.MetadataType\n        '
    record = self._db.get_metadata_type_by_name(name)
    if (not record):
        return None
    return self._make(record)
:rtype: datacube.model.MetadataType
@lru_cache()
def get_by_name(self, name):
    '\n        \n        '
    record = self._db.get_metadata_type_by_name(name)
    if (not record):
        return None
    return self._make(record)