class_docstr: This class allows you to access the local filesystem in a way similar to the S3 datatools
  client. It is a stripped down version for now and only implements the functionality needed
  for this use case.
  
  In the future, we may want to allow it to be used in a way similar to the S3() client.
class_docstr_tok: ["This","class","allows","you","to","access","the","local","filesystem","in","a","way","similar","to","the","S3","datatools","client",".","It","is","a","stripped","down","version","for","now","and","only","implements","the","functionality","needed","for","this","use","case",".","In","the","future",",","we","may","want","to","allow","it","to","be","used","in","a","way","similar","to","the","S3","(",")","client","."]
code: def get_root_from_config(cls, echo, create_on_absent=True):
      result = DATATOOLS_LOCALROOT
      if result is None:
          from metaflow.plugins.datastores.local_storage import (
              LocalStorage,
          )
  
          result = LocalStorage.get_datastore_root_from_config(
              echo, create_on_absent
          )
          result = os.path.join(result, DATATOOLS_SUFFIX)
          if create_on_absent and not os.path.exists(result):
              os.mkdir(result)
      return result
  
imports: import os
  from metaflow.exception import MetaflowException
  from metaflow.metaflow_config import DATATOOLS_LOCALROOT, DATATOOLS_SUFFIX
  from metaflow.util import to_unicode
label_desc: Use image node_id 2 for calling the Local obj's underlying member method code with example usage: obj.get_root_from_config(cls, echo, create_on_absent) and returns: result