class_docstr: Represents a data source within the local filesystem.
class_docstr_tok: ["Represents","a","data","source","within","the","local","filesystem","."]
code: def __init__(self, root_path):
      super(LocalFileDataSource, self).__init__()
  
      self.root_path = os.path.abspath(root_path)
      if not os.path.exists(self.root_path):
          raise RuntimeError(
              "Invalid data source: %s does not exist." % self.root_path
          )
  
imports: from __future__ import absolute_import
  import os
  import platform
  import sys
  import tempfile
  from abc import ABCMeta
  from abc import abstractmethod
  from six import with_metaclass
  from six.moves.urllib.parse import urlparse
  import sagemaker.amazon.common
  import sagemaker.local.utils
  import sagemaker.utils
label_desc: Use image node_id 1 to create a new LocalFileDataSource object from inherited base classes: DataSource with example: obj = LocalFileDataSource(root_path)