code: def toggle_selector(event):
      print("Key pressed.")
      if event.key == "t":
          for selector in selectors:
              name = type(selector).__name__
              if selector.active:
                  print(f"{name} deactivated.")
                  selector.set_active(False)
              else:
                  print(f"{name} activated.")
                  selector.set_active(True)
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.widgets import EllipseSelector, RectangleSelector
label_desc: Use image node_id 2 for calling a global function with example usage: toggle_selector(event) without return types