code: def value(self):
      return 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 4 for calling the _Union obj's underlying member method code with example usage: obj.value() and returns: getattr