code: def table(version):
      """
      Make an html table of the downloads.
  
      This is for pasting into the GitHub releases page. See GitHub_release().
      """
      tarball_formatter_dict = dict(_tarball_format(version))
      shortversion = get_sympy_short_version(version)
  
      tarball_formatter_dict["version"] = shortversion
  
      sha256s = [
          i.split("\t")
          for i in _sha256(version, print_=False, local=True).split(
              "\n"
          )
      ]
      sha256s_dict = {name: sha256 for sha256, name in sha256s}
  
      sizes = [
          i.split("\t")
          for i in _size(version, print_=False).split("\n")
      ]
      sizes_dict = {name: size for size, name in sizes}
  
      table = []
  
      # https://docs.python.org/2/library/contextlib.html#contextlib.contextmanager. Not
      # recommended as a real way to generate html, but it works better than
      # anything else I've tried.
      @contextmanager
      def tag(name):
          table.append("<%s>" % name)
          yield
          table.append("</%s>" % name)
  
      @contextmanager
      def a_href(link):
          table.append('<a href="%s">' % link)
          yield
          table.append("</a>")
  
      with tag("table"):
          with tag("tr"):
              for headname in [
                  "Filename",
                  "Description",
                  "size",
                  "sha256",
              ]:
                  with tag("th"):
                      table.append(headname)
  
          for key in descriptions:
              name = get_tarball_name(key, version)
              with tag("tr"):
                  with tag("td"):
                      with a_href(
                          "https://github.com/sympy/sympy/releases/download/sympy-%s/%s"
                          % (version, name)
                      ):
                          with tag("b"):
                              table.append(name)
                  with tag("td"):
                      table.append(
                          descriptions[key].format(
                              **tarball_formatter_dict
                          )
                      )
                  with tag("td"):
                      table.append(sizes_dict[name])
                  with tag("td"):
                      table.append(sha256s_dict[name])
  
      out = " ".join(table)
      return out
  
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 17 for calling a global function with example usage: table(version) and returns: out