code: def create(t, cls):
      tag = _UnionTag(t)
      assert not hasattr(tag, "_cls")
      tag._cls = cls
      return tag
  
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 1 for calling the _UnionTag obj's underlying member method code with example usage: obj.create(t, cls) and returns: tag