code: def __init__(
      self, graph_diff_error, tensor_compare_error, extra_msg=None
  ):
      self.message = "Tracing failed sanity checks!\n"
      if extra_msg is not None:
          self.message += extra_msg + "\n"
      if graph_diff_error is not None:
          self.message += "ERROR: Graphs differed across invocations!\n"
          self.message += indent(graph_diff_error) + "\n"
      if tensor_compare_error is not None:
          self.message += (
              "ERROR: Tensor-valued Constant nodes differed in value "
              "across invocations. This often indicates that the tracer has"
              " encountered untraceable code.\n"
          )
          self.message += indent(tensor_compare_error) + "\n"
      super().__init__(self.message)
  
imports: import contextlib
  import copy
  import functools
  import inspect
  import os
  import re
  import warnings
  from typing import Any, Callable, Dict, List, Optional, Set, TypeVar
  from typing_extensions import ParamSpec
  import torch
  from torch._jit_internal import _qualified_name, get_callable_argument_names, is_scripting
  from torch.autograd import function
  from torch.jit._script import _CachedForward, script, ScriptModule
  from torch.jit._state import _enabled, _python_cu
  from torch.nn import Module
  from torch.testing._comparison import default_tolerances
label_desc: Use image node_id 1 to create a new TracingCheckError object from inherited base classes: Exception with example: obj = TracingCheckError(graph_diff_error, tensor_compare_error, extra_msg)