def METHOD_NAME(attr_name: str) -> Resolver:
    """Create a resolver that resolves to given attribute or dict key.
    Returns a resolver function that can be used as resolver.
    Usually not used directly  but through higher level features like aliases
    or schema names conversion.
    # Required arguments
    `attr_name`: a `str` with name of attribute or `dict` key to return from
    resolved object.
    """
    def resolver(parent: Any, info: GraphQLResolveInfo, **kwargs) -> Any:
        value = resolve_parent_field(parent, attr_name)
        if callable(value):
            return value(info, **kwargs)
        return value
    # pylint: disable=protected-access
    resolver._ariadne_alias_resolver = True  # type: ignore
    return resolver