code: def _pilbitmap_check():
      global _pilbitmap_ok
      if _pilbitmap_ok is None:
          try:
              im = Image.new("1", (1, 1))
              tkinter.BitmapImage(data=f"PIL:{im.im.id}")
              _pilbitmap_ok = 1
          except tkinter.TclError:
              _pilbitmap_ok = 0
      return _pilbitmap_ok
  
file_path: pillow-simd/src/PIL/ImageTk.py
imports: import tkinter
  from io import BytesIO
  from .None import Image
label_desc: Use image node_id 1 for calling a global function with example usage: _pilbitmap_check() and returns: _pilbitmap_ok