code: def test_all_invariants(self):
      # Check that the regular stuff is OK!
      C._dispatch_check_all_invariants()
  
imports: import torch._C
  from torch.testing._internal.common_utils import TestCase, run_tests
  from torch._python_dispatcher import PythonDispatcher
  from collections import namedtuple
  import itertools
  import os
  import re
  import torch.utils.cpp_extension
label_desc: Use image node_id 1 for calling the TestDispatch obj's underlying member method code with example usage: obj.test_all_invariants() without return types