code: def parent(self):
          '''
          Get parent node if available based on app config's directory_base.
  
          :returns: parent object if available
          :rtype: Node instance or None
          '''
          if check_path(self.path, self.app.config['directory_base']):
              return None
          parent = os.path.dirname(self.path) if self.path else None
          return self.directory_class(parent, self.app) if parent else Nonf parent(self):
          '''
          Get parent node if available based on app config's directory_base.
  
          :returns: parent object if available
          :rtype: Node instance or None
          '''
          if check_path(self.path, self.app.config['directory_base']):
              return None
          parent = os.path.dirname(self.path) if self.path else None
          return self.directory_class(parent, self.app) if parent else None
docs: Get parent node if available based on app config's directory_base.
  
          :returns: parent object if available
          :rtype: Node instance or None