code: def _sanitize_op_names(block, sanitizer_ops):
      # iterate over all the ops and sanitize the op names
      for op in list(block.operations):
          if op.name is not None:
              op.name = sanitizer_ops.sanitize_name(op.name)
  
imports: import re
  import warnings
  from collections import OrderedDict
  from coremltools import _logger
  from coremltools.converters.mil.input_types import EnumeratedShapes, ImageType, Shape
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Function, types
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 7 for calling the NameSanitizer obj's underlying member method code with example usage: obj._sanitize_op_names(block, sanitizer_ops) without return types