class_docstr: Maintains a map from torch operations to their MIL values
  while building the graph. Can be used to process subgraphs recursively
  by pushing new context when stepping into a subgraph and popping that
  context when stepping out.
class_docstr_tok: ["Maintains","a","map","from","torch","operations","to","their","MIL","values","while","building","the","graph",".","Can","be","used","to","process","subgraphs","recursively","by","pushing","new","context","when","stepping","into","a","subgraph","and","popping","that","context","when","stepping","out","."]
docstr: Lookup a name in the context. Note that since nested blocks must be
  able to access anything that was defined before them, we have to
  search all contexts for a name, starting with the most local scope.
docstr_tok: ["Lookup","a","name","in","the","context",".","Note","that","since","nested","blocks","must","be","able","to","access","anything","that","was","defined","before","them",",","we","have","to","search","all","contexts","for","a","name",",","starting","with","the","most","local","scope","."]
code: def __getitem__(self, torch_name):
      """Lookup a name in the context. Note that since nested blocks must be
      able to access anything that was defined before them, we have to
      search all contexts for a name, starting with the most local scope.
      """
      for idx in reversed(range(len(self._current_graph))):
          current_graph = self._current_graph[idx]
          if torch_name in current_graph:
              return self._current_graph[idx][torch_name]
      raise ValueError(
          "Torch var {} not found in context {}".format(
              torch_name, self.name
          )
      )
  
imports: from __future__ import print_function
  from six import string_types
  import logging
  import torch
  from coremltools.converters.mil.input_types import InputType, ImageType
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Placeholder, Function, Program, get_new_symbol
  from coremltools.converters.mil.mil import Var
  from .internal_graph import *
  from .ops import *
  from .torch_op_registry import _TORCH_OPS_REGISTRY
  from .torchir_passes import *
label_desc: Use image node_id 3 for calling the TranscriptionContext obj's underlying member method code with example usage: obj.__getitem__(torch_name) and returns: self