code: def get_root_dir(self):
          
          if os.path.isdir(self.root_path):
              return self.root_path
          else:
              return os.path.dirname(self.root_path)
docs: Retrieve the absolute path to the root directory of this data source.
  
          Returns:
              str: absolute path to the root directory of this data source.