class_docstr: Represents a tensor subclass instance with a __torch_function__ override.
class_docstr_tok: ["Represents","a","tensor","subclass","instance","with","a","__torch_function__","override","."]
code: def install_global(self, tx):
      # stash the subclass type to rewrap an output tensor if needed
      # this is needed because the actual type needs to be available
      # each time the compiled artifact is run and outputs a wrapped tensor.
      if self.global_mangled_class_name() not in tx.output.global_scope:
          tx.output.install_global(
              self.global_mangled_class_name(), self.class_type
          )
  
imports: import inspect
  from typing import Dict, List
  import torch.utils._pytree
  from torch.overrides import _get_overloaded_args, get_default_nowrap_functions
  from ..exc import unimplemented
  from ..guards import GuardBuilder, install_guard
  from ..source import AttrSource, GlobalSource
  from ..utils import has_torch_function, is_tensor_base_attr_getter
  from .base import VariableTracker
  from .constant import ConstantVariable
  from .lists import TupleVariable
  from .tensor import TensorSubclassVariable, TensorVariable
  from .user_defined import UserDefinedObjectVariable
label_desc: Use image node_id 3 for calling the TensorWithTFOverrideVariable obj's underlying member method code with example usage: obj.install_global(tx) without return types