def METHOD_NAME(self, translator, name, args, kwargs):
    if name in disallowed_tensor_methods:
        raise torchdynamo.exc.Unsupported(f"Tensor.{name} not supported by TVM.")
    return old_call_method(self, translator, name, args, kwargs)