code: def _fit_transform(
      data: np.ndarray,
      target: List[int],
      auto_preprocess: bool,
      preprocess_methods: Dict[str, PreProcessMethods],
      preprocess_configs: Dict[str, Dict[str, Any]],
      methods: Dict[str, PreProcessMethods],
      all_stats: Dict[str, Dict[str, float]],
  ) -> None:
      for idx in target:
          str_idx = str(idx)
          method = preprocess_methods.get(str_idx)
          if method is None and not auto_preprocess:
              continue
          if method is None:
              method = PreProcessMethods.NORMALIZE
          fn = fn_mapping.get(method)
          if fn is None:
              raise ValueError(
                  f"unrecognized method '{method}' occurred"
              )
          kw = shallow_copy_dict(preprocess_configs.get(str_idx, {}))
          kw["arr"] = data[..., idx]
          kw["return_stats"] = True
          array, stats = safe_execute(fn, kw)
          data[..., idx] = array
          methods[str_idx] = method
          all_stats[str_idx] = stats
  
imports: import numpy
  from enum import Enum
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  from dataclasses import dataclass
  from cftool.misc import safe_execute
  from cftool.misc import shallow_copy_dict
  from cftool.array import normalize
  from cftool.array import normalize_from
  from cftool.array import recover_normalize_from
  from cftool.array import min_max_normalize
  from cftool.array import min_max_normalize_from
  from cftool.array import recover_min_max_normalize_from
  from cftool.array import quantile_normalize
  from cftool.array import quantile_normalize_from
  from cftool.array import recover_quantile_normalize_from
  from .file import FileParserBlock
  from .recognizer import RecognizerBlock
  from ....schema import DataBundle
  from ....schema import ColumnTypes
  from ....schema import INoInitDataBlock
label_desc: Use image node_id 1 for calling a global function with example usage: _fit_transform(data, target, auto_preprocess, preprocess_methods, preprocess_configs, methods, all_stats) without return types