code: def to_tuple(v):
      if not isinstance(v, (list, tuple)):
          return tuple([v])
      return tuple(v)
  
imports: import logging
  import numpy
  import copy
  import coremltools
  from coremltools import converters
  from coremltools.converters.mil import converter
  from coremltools.converters.mil.mil import Program, Function
  from coremltools.converters.mil.mil.passes.pass_registry import PASS_REGISTRY
  from coremltools._deps import _IS_MACOS
label_desc: Use image node_id 8 for calling a global function with example usage: to_tuple(v) and returns: tuple, tuple