docs: def endpoint_from_name(endpoint_name):
      """The object used for interacting with the named relations, or None.
      """
      if endpoint_name is None:
          return None
      factory = relation_factory(endpoint_name)
      if factory:
          return factory.from_name(endpoint_name)