code: def get_repo(name, basedir=None, **kwargs):  # pylint: disable=W0613
      '''
      Display a repo from <basedir> (default basedir: all dirs in ``reposdir``
      yum option).
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' pkg.get_repo myrepo
          salt '*' pkg.get_repo myrepo basedir=/path/to/dir
          salt '*' pkg.get_repo myrepo basedir=/path/to/dir,/path/to/another/dir
      '''
      repos = list_repos(basedir)
  
      # Find out what file the repo lives in
      repofile = ''
      for repo in repos:
          if repo == name:
              repofile = repos[repo]['file']
  
      if repofile:
          # Return just one repo
          filerepos = _parse_repo_file(repofile)[1]
          return filerepos[name]
      return {f get_repo(name, basedir=None, **kwargs):  # pylint: disable=W0613
      '''
      Display a repo from <basedir> (default basedir: all dirs in ``reposdir``
      yum option).
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' pkg.get_repo myrepo
          salt '*' pkg.get_repo myrepo basedir=/path/to/dir
          salt '*' pkg.get_repo myrepo basedir=/path/to/dir,/path/to/another/dir
      '''
      repos = list_repos(basedir)
  
      # Find out what file the repo lives in
      repofile = ''
      for repo in repos:
          if repo == name:
              repofile = repos[repo]['file']
  
      if repofile:
          # Return just one repo
          filerepos = _parse_repo_file(repofile)[1]
          return filerepos[name]
      return {}
docs: Display a repo from <basedir> (default basedir: all dirs in ``reposdir``
      yum option).
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' pkg.get_repo myrepo
          salt '*' pkg.get_repo myrepo basedir=/path/to/dir
          salt '*' pkg.get_repo myrepo basedir=/path/to/dir,/path/to/another/dir