code: def disable_git(env: Optional[Env] = None) -> bool:
      if env is None:
          env = os.environ
      val = env.get(DISABLE_GIT, default="False")
      if isinstance(val, str):
          val = False if val.lower() == "false" else True
      return val
  
imports: import json
  import os
  import sys
  from distutils.util import strtobool
  from pathlib import Path
  from typing import List, MutableMapping, Optional, Union
  import appdirs
label_desc: Use image node_id 37 for calling a global function with example usage: disable_git(env) and returns: val