code: def _sanitize_var_names(var, sanitizer_vars, emit_warning=False):
      new_name = sanitizer_vars.sanitize_name(var.name)
      if new_name != var.name:
          if emit_warning:
              msg = "Output, '{}', of the source model, has been renamed to '{}' in the Core ML model."
              warnings.warn(msg.format(var.name, new_name))
          var.set_name(new_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 6 for calling the NameSanitizer obj's underlying member method code with example usage: obj._sanitize_var_names(var, sanitizer_vars, emit_warning) without return types