code: def default_endpoint_from_config(config, option=None):
      
      default_endpoint = config.get('core', {}).get('default')
      project_endpoint = config.get('project',
                                    {}).get('core',
                                            {}).get('default', default_endpoint)
      return Endpoint(
          option or project_endpoint or default_endpoint,
          default=default_endpoint,
          project=project_endpoint,
          option=option
      )
docs: Return a default endpoint.