class_docstr: Saves layer output min and max values in a dict with layer names as keys.
  The collected min and max values will be directly used as thresholds for quantization.
class_docstr_tok: ["Saves","layer","output","min","and","max","values","in","a","dict","with","layer","names","as","keys",".","The","collected","min","and","max","values","will","be","directly","used","as","thresholds","for","quantization","."]
docstr: Callback function for collecting min and max values from an NDArray.
code: def collect(self, name, op_name, arr):
      """Callback function for collecting min and max values from an NDArray."""
      if name not in self.include_layers:
          return
      arr = arr.copyto(cpu()).asnumpy()
      min_range = np.min(arr)
      max_range = np.max(arr)
      if name in self.min_max_dict:
          cur_min_max = self.min_max_dict[name]
          self.min_max_dict[name] = (
              min(cur_min_max[0], min_range),
              max(cur_min_max[1], max_range),
          )
      else:
          self.min_max_dict[name] = (min_range, max_range)
      if self.logger:
          self.logger.debug(
              f"Collecting layer {name} min_range={min_range}, max_range={max_range}"
          )
  
imports: import abc
  import ctypes
  import logging
  import os
  import warnings
  import numpy
  import mxnet
  from ..base import _LIB, check_call, py_str
  from ..base import c_array, c_str, mx_uint, mx_real_t, c_str_array
  from ..base import SymbolHandle
  from ..symbol import Symbol
  from ..None import ndarray
  from ..io import DataDesc
  from ..device import cpu, Device
  from ..util import is_np_array, wrap_ctx_to_device_func
label_desc: Use image node_id 2 for calling the _LayerOutputMinMaxCollector obj's underlying member method code with example usage: obj.collect(name, op_name, arr) without return types