code: def get_datastore_root_from_config(cls, echo, create_on_absent=True):
      result = DATASTORE_SYSROOT_LOCAL
      if result is None:
          try:
              # Python2
              current_path = os.getcwdu()
          except:  # noqa E722
              current_path = os.getcwd()
          check_dir = os.path.join(current_path, DATASTORE_LOCAL_DIR)
          check_dir = os.path.realpath(check_dir)
          orig_path = check_dir
          top_level_reached = False
          while not os.path.isdir(check_dir):
              new_path = os.path.dirname(current_path)
              if new_path == current_path:
                  top_level_reached = True
                  break  # We are no longer making upward progress
              current_path = new_path
              check_dir = os.path.join(
                  current_path, DATASTORE_LOCAL_DIR
              )
          if top_level_reached:
              if create_on_absent:
                  # Could not find any directory to use so create a new one
                  echo(
                      "Creating local datastore in current directory (%s)"
                      % orig_path
                  )
                  os.mkdir(orig_path)
                  result = orig_path
              else:
                  return None
          else:
              result = check_dir
      else:
          result = os.path.join(result, DATASTORE_LOCAL_DIR)
      return result
  
file_path: metaflow/metaflow/plugins/datastores/local_storage.py
imports: import json
  import os
  from metaflow.metaflow_config import DATASTORE_LOCAL_DIR, DATASTORE_SYSROOT_LOCAL
  from metaflow.datastore.datastore_storage import CloseAfterUse, DataStoreStorage
label_desc: Use image node_id 1 for calling the LocalStorage obj's underlying member method code with example usage: obj.get_datastore_root_from_config(cls, echo, create_on_absent) and returns: result, None