class_docstr: Replace non-``const`` ops that have ``const`` Var. Outputs are replaced with the ``const`` op. Example:
  
  .. code-block::
  
      Given:
          %2, %3 = non_const_op(...)  # %2 is const, %3 isn't const
          %4 = other_op(%2, %3)
  
      Result:
          _, %3 = non_const_op(...)  # _ is the ignored output
          %2_const = const()         # %2_const name is for illustration only
          %4 = other_op(%2_const, %3)
  
  Support options:
  
  - ``skip_const_by_size``: Skip folding ``const`` ops that have larger number of elements than a threshold.
code: def skip_const_by_size(self):
      return self._skip_const_by_size
  
file_path: coremltools/coremltools/converters/mil/mil/passes/defs/cleanup/const_elimination.py
imports: from coremltools import _logger
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Program
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
  from coremltools.converters.mil.mil.passes.helper import block_context_manager
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 1 for calling the const_elimination obj's underlying member method code with example usage: obj.skip_const_by_size() and returns: self