code: def find_parent_split(node, orientation):
      
  
      if (node and node.orientation == orientation
          and len(node.children) > 1):
          return node
  
      if not node or node.type == "workspace":
          return None
  
      return find_parent_split(node.parent, orientation)
docs: Find the first parent split relative to the given node
      according to the desired orientation