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 call_method(
      self,
      tx,
      name,
      args: "List[VariableTracker]",
      kwargs: "Dict[str, VariableTracker]",
  ) -> "VariableTracker":
      # This code block implements inlining the __torch_function__ override
      # of `call_method`.
      if tx.output.torch_function_enabled:
          import torch
          from .builder import SourcelessBuilder, VariableBuilder
  
          if _is_attr_overidden(tx, self, name):
              unimplemented(
                  f"Calling overridden method {name} on a tensor"
                  " subclass with a __torch_function__ override is not supported"
              )
  
          # [Note: __torch_function__] Currently we only support methods that are defined on tensor
          # we will graph break in other cases this will need a bigger overhaul of extracting methods/comparing them for equality
          # We've established with the above check that the method is not overridden, so we guard that the method is the same
          # as the impl defined on tensor and retrieve it
          if self.source:
              func_var = VariableBuilder(
                  tx,
                  AttrSource(
                      AttrSource(self.source, "__class__"), name
                  ),
              )(inspect.getattr_static(self.python_type(), name))
          else:
              func_var = SourcelessBuilder()(
                  tx, getattr(torch.Tensor, name)
              )
          return dispatch_torch_function(
              tx, func_var, [self] + args, kwargs
          )
      else:
          return super().call_method(tx, name, 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 9 for calling the TensorWithTFOverrideVariable obj's underlying member method code with example usage: obj.call_method(tx, name, args, kwargs) and returns: dispatch_torch_function, super