code: def _setup_tk(tb):
      import tkinter as tk
  
      tb._Spacer()  # FIXME: _Spacer needs public API.
  
      button = tk.Menubutton(master=tb, relief="raised")
      button._image_file = str(Path(__file__).parent / "images/eye.png")
      # FIXME: _set_image_for_button needs public API (perhaps like _icon).
      tb._set_image_for_button(button)
      button.pack(side=tk.LEFT)
  
      menu = tk.Menu(master=button, tearoff=False)
      for name in _MENU_ENTRIES:
          menu.add(
              "radiobutton",
              label=name,
              command=lambda _name=name: _set_menu_entry(tb, _name),
          )
      menu.invoke(0)
      button.config(menu=menu)
  
file_path: matplotlib/galleries/examples/user_interfaces/mplcvd.py
imports: import functools
  from pathlib import Path
  import colorspacious
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: _setup_tk(tb) without return types