code: def add_local_var(self, name, var):
      if isinstance(var, ModuleType):
          self.locals[name] = self._add_mod(var)
      else:
          self.locals[name] = var
  
file_path: pytorch/torch/_dynamo/replay_record.py
imports: import dataclasses
  from dataclasses import field
  from types import CodeType, ModuleType
  from typing import Any, Dict
label_desc: Use image node_id 1 for calling the ExecutionRecorder obj's underlying member method code with example usage: obj.add_local_var(name, var) without return types