code: def __repr__(self):
      return f"{type(self).__name__}({self.type}={getattr(self, self.type)})"
  
file_path: pytorch/torch/_export/serde/union.py
imports: import functools
  from dataclasses import fields
  from typing import Hashable, Set
label_desc: Use image node_id 7 for calling the _Union obj's underlying member method code with example usage: obj.__repr__() and returns: type, str, self, str, getattr, str