code: def test_all(self):
      self.assertIn("Widget", tkinter.__all__)
      # Check that variables from tkinter.constants are also in tkinter.__all__
      self.assertIn("CASCADE", tkinter.__all__)
      self.assertIsNotNone(tkinter.CASCADE)
      # Check that sys, re, and constants are not in tkinter.__all__
      self.assertNotIn("re", tkinter.__all__)
      self.assertNotIn("sys", tkinter.__all__)
      self.assertNotIn("constants", tkinter.__all__)
      # Check that an underscored functions is not in tkinter.__all__
      self.assertNotIn("_tkerror", tkinter.__all__)
      # Check that wantobjects is not in tkinter.__all__
      self.assertNotIn("wantobjects", tkinter.__all__)
  
imports: import functools
  import unittest
  import tkinter
  from tkinter import TclError
  import enum
  from test import support
  from test.test_tkinter.support import AbstractTkTest, AbstractDefaultRootTest, requires_tk
label_desc: Use image node_id 1 for calling the MiscTest obj's underlying member method code with example usage: obj.test_all() without return types