code: def test_bind_rebind(self):
      event = "<Control-Alt-Key-d>"
      f = self.frame
      self.assertEqual(f.bind(), ())
      self.assertEqual(f.bind(event), "")
  
      def test1(e):
          pass
  
      def test2(e):
          pass
  
      def test3(e):
          pass
  
      funcid = f.bind(event, test1)
      funcid2 = f.bind(event, test2, add=True)
      script = f.bind(event)
      self.assertIn(funcid2, script)
      self.assertIn(funcid, script)
      self.assertCommandExist(funcid)
      self.assertCommandExist(funcid2)
  
      funcid3 = f.bind(event, test3)
      script = f.bind(event)
      self.assertNotIn(funcid, script)
      self.assertNotIn(funcid2, script)
      self.assertIn(funcid3, script)
      self.assertCommandExist(funcid3)
  
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 7 for calling the BindTest obj's underlying member method code with example usage: obj.test_bind_rebind() without return types