class_docstr: Holds shared variables needed for transcription.
class_docstr_tok: ["Holds","shared","variables","needed","for","transcription","."]
code: def register_var_with_name(self, name, var):
      var.name = name
      if name in self.name_to_var:
          # Overriding allow us to translate control flow blocks
          msg = "Var %s is added again. Overriding previous value"
          logger.info(msg % name)
      self.name_to_var[name] = var
  
imports: import os
  import numpy
  from coremltools import _logger
  from coremltools.converters.mil._deployment_compatibility import AvailableTarget
  from coremltools.converters.mil.backend.mil import helper
  from coremltools.converters.mil.mil import Block
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Function, ListVar, Placeholder, Program, TupleInputType, Var, mil_list, types
  from coremltools.converters.mil.mil.block import curr_block
  from coremltools.converters.mil.mil.ops.registry import SSAOpRegistry
  from coremltools.proto import MIL_pb2
  from coremltools.proto import Model_pb2
  from .helper import proto_to_types
label_desc: Use image node_id 2 for calling the TranscriptionContext obj's underlying member method code with example usage: obj.register_var_with_name(name, var) without return types