code: def _find_all_children_splits(split, splits_dict):
      """
      This helper function finds all multigeneration children splits for an
      argument split.
  
      Arguments:
          split --The split for which you are trying to find children splits
          splits_dict -- A dictionary of all the splits in the tree
  
      Returns:
          A list containing the Node IDs of all children splits
      """
      all_splits = []
  
      # Check if the immediate left child of the argument split is also a split.
      # If so append to the list then use recursion to generate the remainder
      left_child = splits_dict[split]["children"][0]
      if left_child in splits_dict:
          all_splits.append(left_child)
          all_splits.extend(
              _find_all_children_splits(left_child, splits_dict)
          )
  
      # Same as above but with right child
      right_child = splits_dict[split]["children"][1]
      if right_child in splits_dict:
          all_splits.append(right_child)
          all_splits.extend(
              _find_all_children_splits(right_child, splits_dict)
          )
  
      return all_splits
  
file_path: OMLT/src/omlt/linear_tree/lt_definition.py
imports: import numpy
  import lineartree
label_desc: Use image node_id 1 for calling a global function with example usage: _find_all_children_splits(split, splits_dict) and returns: all_splits