class_docstr: Represent modifications to training graph for weight compression.
class_docstr_tok: ["Represent","modifications","to","training","graph","for","weight","compression","."]
code: def _get_name_by_tensor(self, tensor):
      for name, dummy_tensor in self.dummy_name_to_tensor.items():
          if tensor is dummy_tensor:
              return name
      return None
  
imports: from typing import List, Mapping
  import tensorflow
label_desc: Use image node_id 2 for calling the _TrainingWrapper obj's underlying member method code with example usage: obj._get_name_by_tensor(tensor) and returns: None, name