code: def get_long_description_from_README():
      """Read README.md, convert to .rst using pypandoc
  
      If pypandoc is not available or fails - just output original .md.
  
      Returns
      -------
      dict
        with keys long_description and possibly long_description_content_type
        for newer setuptools which support uploading of markdown as is.
      """
      # PyPI used to not render markdown. Workaround for a sane appearance
      # https://github.com/pypa/pypi-legacy/issues/148#issuecomment-227757822
      # is still in place for older setuptools
  
      README = opj(_path_rel2file("README.md"))
  
      ret = {}
      if Version(setuptools.__version__) >= Version("38.6.0"):
          # check than this
          ret["long_description"] = open(README).read()
          ret["long_description_content_type"] = "text/markdown"
          return ret
  
      # Convert or fall-back
      try:
          import pypandoc
  
          return {"long_description": pypandoc.convert(README, "rst")}
      except (ImportError, OSError) as exc:
          # attempting to install pandoc via brew on OSX currently hangs and
          # pypandoc imports but throws OSError demanding pandoc
          print(
              "WARNING: pypandoc failed to import or thrown an error while "
              "converting"
              " README.md to RST: %r   .md version will be used as is"
              % exc
          )
          return {"long_description": open(README).read()}
  
imports: import datetime
  import os
  import platform
  import sys
  from os import linesep, makedirs
  from os.path import dirname
  from os.path import join
  from os.path import sep
  from os.path import splitext
  import setuptools
  from genericpath import exists
  from packaging.version import Version
  from setuptools import Command, DistutilsOptionError, find_namespace_packages, findall, setup
  from .None import formatters
label_desc: Use image node_id 3 for calling a global function with example usage: get_long_description_from_README() and returns: ret, dict, dict