code: def get_depth(self, p):
      # helper function to find the depth of the pointer in the tree
      depth = 0
      while p:
          p = p.parent
          depth += 1
      return depth
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.get_depth(p) and returns: depth