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 __init__(self, *args, **kwargs):
      self.torch_function_fn = kwargs.pop("torch_function_fn")
      super().__init__(*args, **kwargs)
  
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 1 to create a new TensorWithTFOverrideVariable object from inherited base classes: TensorVariable with example: obj = TensorWithTFOverrideVariable()