code: def _adjust_var_dtype_helper(var, dtype):
      if types.is_scalar(var.sym_type):
          var._sym_type = dtype
      else:
          var._sym_type = types.tensor(dtype, var.sym_type.get_shape())
  
file_path: coremltools/coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py
imports: from typing import Set
  from coremltools import _logger
  from coremltools.converters.mil._deployment_compatibility import AvailableTarget
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  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 a global function with example usage: _adjust_var_dtype_helper(var, dtype) without return types