code: def __init__(self, path, parent_path, is_last):
      self.path = Path(str(path))
      self.parent = parent_path
      self.is_last = is_last
      if self.parent:
          self.depth = self.parent.depth + 1
      else:
          self.depth = 0
  
file_path: underthesea/underthesea/corpus/util.py
imports: from os import listdir
  from os.path import join
  from pathlib import Path
label_desc: Use image node_id 1 to create a new DisplayablePath object from inherited base classes: object with example: obj = DisplayablePath(path, parent_path, is_last)