def METHOD_NAME(name: str | object | None = None):
    try:
        from megnet.utils.descriptor import MEGNetDescriptor
        from megnet.utils.models import MODEL_MAPPING, load_model
    except ImportError:
        raise MEGNetNotFound
    AVAILBLE_MODELS = list(MODEL_MAPPING.keys())
    if isinstance(name, str) and name in AVAILBLE_MODELS:
        name_or_model = load_model(name)
    elif name is None:
        name_or_model = str(DEFAULT_MODEL)
    else:
        name_or_model = name
    return MEGNetDescriptor(name_or_model)