code: def _get_tree_infos_from_tree_ensemble(
      operator, device=None, extra_config={}
  ):
      """
      Base method for extracting parameters from `ai.onnx.ml.TreeEnsemble`s.
      """
      assert (
          constants.N_FEATURES in extra_config
      ), "Cannot retrive the number of features. Please fill an issue at https://github.com/microsoft/hummingbird."
  
      # Get the number of features.
      n_features = extra_config[constants.N_FEATURES]
  
      (
          tree_infos,
          classes,
          post_transform,
          decision_cond,
      ) = _get_tree_infos_from_onnx_ml_operator(operator)
  
      # Get tree informations from the operator.
      return (
          n_features,
          tree_infos,
          classes,
          post_transform,
          decision_cond,
      )
  
file_path: hummingbird/hummingbird/ml/operator_converters/onnx/tree_ensemble.py
imports: import numpy
  from onnxconverter_common.registration import register_converter
  from ..None import constants
  from .._gbdt_commons import convert_gbdt_classifier_common, convert_gbdt_common
  from .._tree_commons import TreeParameters, convert_decision_ensemble_tree_common, get_parameters_for_tree_trav_common
label_desc: Use image node_id 3 for calling a global function with example usage: _get_tree_infos_from_tree_ensemble(operator, device, extra_config) and returns: n_features,  tree_infos,  classes,  post_transform,  decision_cond