code: def get_tarball_name(file, version):
      """
      Get the name of a tarball
  
      file should be one of
  
      source-orig:       The original name of the source tarball
      source-orig-notar: The name of the untarred directory
      source:            The source tarball (after renaming)
      wheel:             The wheel
      html:              The name of the html zip
      html-nozip:        The name of the html, without ".zip"
      pdf-orig:          The original name of the pdf file
      pdf:               The name of the pdf file (after renaming)
      """
      doctypename = defaultdict(str, {"html": "zip", "pdf": "pdf"})
  
      if file in {"source-orig", "source"}:
          name = "sympy-{version}.tar.gz"
      elif file == "source-orig-notar":
          name = "sympy-{version}"
      elif file in {"html", "pdf", "html-nozip"}:
          name = "sympy-docs-{type}-{version}"
          if file == "html-nozip":
              # zip files keep the name of the original zipped directory. See
              # https://github.com/sympy/sympy/issues/7087.
              file = "html"
          else:
              name += ".{extension}"
      elif file == "pdf-orig":
          name = "sympy-{version}.pdf"
      elif file == "wheel":
          name = "sympy-{version}-py3-none-any.whl"
      else:
          raise ValueError(file + " is not a recognized argument")
  
      ret = name.format(
          version=version, type=file, extension=doctypename[file]
      )
      return ret
  
imports: import os
  import json
  from subprocess import check_output
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
  import glob
  from contextlib import contextmanager
  import requests
  from requests_oauthlib import OAuth2
label_desc: Use image node_id 20 for calling a global function with example usage: get_tarball_name(file, version) and returns: ret