docs: def get_egrc_config(cli_egrc_path):
      """
      Return a Config namedtuple based on the contents of the egrc.
  
      If the egrc is not present, it returns an empty default Config.
  
      This method tries to use the egrc at cli_egrc_path, then the default path.
  
      cli_egrc_path: the path to the egrc as given on the command line via
          --config-file
      """
      resolved_path = get_priority(cli_egrc_path, DEFAULT_EGRC_PATH, None)
      expanded_path = get_expanded_path(resolved_path)
  
      # Start as if nothing was defined in the egrc.
      egrc_config = get_empty_config()
  
      if os.path.isfile(expanded_path):
          egrc_config = get_config_tuple_from_egrc(expanded_path)
  
      return egrc_config