code: def convert_onnx_tree_ensemble_classifier(
      operator, device=None, extra_config={}
  ):
      """
      Converter for `ai.onnx.ml.TreeEnsembleClassifier`.
  
      Args:
          operator: An operator wrapping a `ai.onnx.ml.TreeEnsembleClassifier` model
          device: String defining the type of device the converted operator should be run on
          extra_config: Extra configuration used to select the best conversion strategy
  
      Returns:
          A PyTorch model
      """
      assert operator is not None, "Cannot convert None operator"
  
      # Get tree informations from the operator.
      (
          n_features,
          tree_infos,
          classes,
          post_transform,
          decision_cond,
      ) = _get_tree_infos_from_tree_ensemble(
          operator.raw_operator, device, extra_config
      )
  
      # Generate the model.
      if post_transform == "NONE":
          return convert_decision_ensemble_tree_common(
              operator,
              tree_infos,
              _dummy_get_parameter,
              get_parameters_for_tree_trav_common,
              n_features,
              classes,
              extra_config,
          )
      extra_config[constants.POST_TRANSFORM] = post_transform
      return convert_gbdt_classifier_common(
          operator,
          tree_infos,
          _dummy_get_parameter,
          n_features,
          len(classes),
          classes,
          extra_config,
          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 4 for calling a global function with example usage: convert_onnx_tree_ensemble_classifier(operator, device, extra_config) and returns: convert_gbdt_classifier_common, convert_decision_ensemble_tree_common