code: def _get_parameters_for_sklearn_iforest(tree_infos, extra_config):
      """
      Parse sklearn-based isolation forest, replace existing values of node with anomaly score calculated in
      _get_iforest_anomaly_score_per_node
  
      Args:
          tree_infos: The information representing a tree (ensemble)
  
      Returns:
          The tree parameters wrapped into an instance of `operator_converters._tree_commons_TreeParameters`
      """
      tree_parameters = get_parameters_for_sklearn_common(
          tree_infos, extra_config
      )
      tree_parameters.values = _get_iforest_anomaly_score_per_node(
          tree_parameters.lefts,
          tree_parameters.rights,
          tree_infos.tree_.n_node_samples,
      ).reshape(tree_parameters.values.shape)
      return tree_parameters
  
imports: import numpy
  from onnxconverter_common.registration import register_converter
  from ..None import constants
  from .._tree_commons import get_parameters_for_sklearn_common, get_parameters_for_tree_trav_sklearn, get_tree_params_and_type, get_parameters_for_gemm_common
  from .._tree_implementations import TreeImpl, GEMMTreeImpl, TreeTraversalTreeImpl, PerfectTreeTraversalTreeImpl
label_desc: Use image node_id 3 for calling a global function with example usage: _get_parameters_for_sklearn_iforest(tree_infos, extra_config) and returns: tree_parameters