code: def get_mupdf(path=None, sha=None):
      """
      Downloads and/or extracts mupdf and returns location of mupdf directory.
  
      Exact behaviour depends on environmental variable
      PYMUPDF_SETUP_MUPDF_BUILD; see docs at start of this file for details.
      """
      m = os.environ.get("PYMUPDF_SETUP_MUPDF_BUILD")
      if m is None and os.path.isfile(mupdf_tgz):
          # This makes us use tgz inside sdist.
          log(f"Using local tgz: {mupdf_tgz=}")
          return get_mupdf_internal("dir", local_tgz=mupdf_tgz)
      return get_mupdf_internal("dir", m)
  
imports: import glob
  import io
  import os
  import textwrap
  import time
  import platform
  import shlex
  import shutil
  import stat
  import subprocess
  import sys
  import tarfile
  import urllib.request
  import zipfile
  import pipcl
  import sys
label_desc: Use image node_id 10 for calling a global function with example usage: get_mupdf(path, sha) and returns: get_mupdf_internal, get_mupdf_internal