code: def should_do_markup(file):
      if os.environ.get("PY_COLORS") == "1":
          return True
      if os.environ.get("PY_COLORS") == "0":
          return False
      if "NO_COLOR" in os.environ:
          return False
      return (
          hasattr(file, "isatty")
          and file.isatty()
          and os.environ.get("TERM") != "dumb"
          and not (sys.platform.startswith("java") and os._name == "nt")
      )
  
imports: import sys, os, unicodedata
  import py
  from py.builtin import text, bytes
label_desc: Use image node_id 5 for calling a global function with example usage: should_do_markup(file) and returns: unknown, True, False, False