class_docstr: This object represents a local object. It is a very thin wrapper
  to allow it to be used in the same way as the S3Object (only as needed
  in the IncludeFile use case)
  
  Get or list calls return one or more of LocalObjects.
class_docstr_tok: ["This","object","represents","a","local","object",".","It","is","a","very","thin","wrapper","to","allow","it","to","be","used","in","the","same","way","as","the","S3Object","(","only","as","needed","in","the","IncludeFile","use","case",")","Get","or","list","calls","return","one","or","more","of","LocalObjects","."]
code: def __init__(self, url, path):
      # all fields of S3Object should return a unicode object
      def ensure_unicode(x):
          return None if x is None else to_unicode(x)
  
      path = ensure_unicode(path)
  
      self._path = path
      self._url = url
  
      if self._path:
          try:
              os.stat(self._path)
          except FileNotFoundError:
              self._path = None
  
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 1 to create a new LocalObject object from inherited base classes: object with example: obj = LocalObject(url, path)