code: def get_use_v1_artifacts(env: Optional[Env] = None) -> bool:
      if env is None:
          env = os.environ
      val = bool(env.get(USE_V1_ARTIFACTS, False))
      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 32 for calling a global function with example usage: get_use_v1_artifacts(env) and returns: val