code: def test_bind_class(self):
      event = "<Control-Alt-Key-e>"
      bind_class = self.root.bind_class
      unbind_class = self.root.unbind_class
      self.assertRaises(TypeError, bind_class)
      self.assertEqual(bind_class("Test"), ())
      self.assertEqual(bind_class("Test", event), "")
      self.addCleanup(unbind_class, "Test", event)
  
      def test1(e):
          pass
  
      def test2(e):
          pass
  
      funcid = bind_class("Test", event, test1)
      self.assertEqual(bind_class("Test"), (event,))
      script = bind_class("Test", event)
      self.assertIn(funcid, script)
      self.assertCommandExist(funcid)
  
      funcid2 = bind_class("Test", event, test2, add=True)
      script = bind_class("Test", event)
      self.assertIn(funcid, script)
      self.assertIn(funcid2, script)
      self.assertCommandExist(funcid)
      self.assertCommandExist(funcid2)
  
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 8 for calling the BindTest obj's underlying member method code with example usage: obj.test_bind_class() without return types