code: def get_data_dir(env: Optional[Env] = None) -> str:
      default_dir = appdirs.user_data_dir("wandb")
      if env is None:
          env = os.environ
      val = env.get(DATA_DIR, default_dir)
      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 28 for calling a global function with example usage: get_data_dir(env) and returns: val