code: def _find_n_inputs(leaves):
      """
      Finds the number of inputs using the length of the slope vector in the
      first leaf
  
      Arguments:
          leaves -- Dictionary of leaf information
  
      Returns:
          Number of inputs
      """
      tree_indices = np.array(list(leaves.keys()))
      leaf_indices = np.array(list(leaves[tree_indices[0]].keys()))
      tree_one = tree_indices[0]
      leaf_one = leaf_indices[0]
      n_inputs = len(
          np.arange(0, len(leaves[tree_one][leaf_one]["slope"]))
      )
      return n_inputs
  
file_path: OMLT/src/omlt/linear_tree/lt_definition.py
imports: import numpy
  import lineartree
label_desc: Use image node_id 3 for calling a global function with example usage: _find_n_inputs(leaves) and returns: n_inputs