code: def _find_all_children_leaves(split, splits_dict, leaves_dict):
      """
      This helper function finds all multigeneration children leaves for an
      argument split.
  
      Arguments:
          split -- The split for which you are trying to find children leaves
          splits_dict -- A dictionary of all the split info in the tree
          leaves_dict -- A dictionary of all the leaf info in the tree
  
      Returns:
          A list containing all the Node IDs of all children leaves
      """
      all_leaves = []
  
      # Find all the splits that are children of the relevant split
      all_splits = _find_all_children_splits(split, splits_dict)
  
      # Ensure the current split is included
      if split not in all_splits:
          all_splits.append(split)
  
      # For each leaf, check if the parents appear in the list of children
      # splits (all_splits). If so, it must be a leaf of the argument split
      for leaf in leaves_dict:
          if leaves_dict[leaf]["parent"] in all_splits:
              all_leaves.append(leaf)
  
      return all_leaves
  
file_path: OMLT/src/omlt/linear_tree/lt_definition.py
imports: import numpy
  import lineartree
label_desc: Use image node_id 2 for calling a global function with example usage: _find_all_children_leaves(split, splits_dict, leaves_dict) and returns: all_leaves