code: def _reassign_none_bounds(leaves, input_bounds):
      """
      This helper function reassigns bounds that are None to the bounds
      input by the user
  
      Arguments:
          leaves -- The dictionary of leaf information. Attribute of the
              LinearTreeDefinition object
          input_bounds -- The nested dictionary
  
      Returns:
          The modified leaves dict without any bounds that are listed as None
      """
      leaf_indices = np.array(list(leaves.keys()))
      leaf_one = leaf_indices[0]
      features = np.arange(0, len(leaves[leaf_one]["slope"]))
  
      for leaf in leaf_indices:
          for feat in features:
              if leaves[leaf]["bounds"][feat][0] is None:
                  leaves[leaf]["bounds"][feat][0] = input_bounds[feat][
                      0
                  ]
              if leaves[leaf]["bounds"][feat][1] is None:
                  leaves[leaf]["bounds"][feat][1] = input_bounds[feat][
                      1
                  ]
  
      return leaves
  
file_path: OMLT/src/omlt/linear_tree/lt_definition.py
imports: import numpy
  import lineartree
label_desc: Use image node_id 4 for calling a global function with example usage: _reassign_none_bounds(leaves, input_bounds) and returns: leaves