class_docstr: Represents a data source within the local filesystem.
class_docstr_tok: ["Represents","a","data","source","within","the","local","filesystem","."]
docstr: Retrieve the absolute path to the root directory of this data source.
  
  Returns:
      str: absolute path to the root directory of this data source.
code: def get_root_dir(self):
      """Retrieve the absolute path to the root directory of this data source.
  
      Returns:
          str: absolute path to the root directory of this data source.
      """
      if os.path.isdir(self.root_path):
          return self.root_path
      return os.path.dirname(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 3 for calling the LocalFileDataSource obj's underlying member method code with example usage: obj.get_root_dir() and returns: os, self