code: def _notebook_vtk_works():
      if sys.platform != "linux":
          return True
      # check if it's OSMesa -- if it is, continue
      try:
          from vtkmodules import vtkRenderingOpenGL2
  
          vtkRenderingOpenGL2.vtkOSOpenGLRenderWindow
      except Exception:
          pass
      else:
          return True  # has vtkOSOpenGLRenderWindow (OSMesa build)
  
      # if it's not OSMesa, we need to check display validity
      if _display_is_valid():
          return True
      return False
  
imports: import collections.abc
  import functools
  import os
  import platform
  import signal
  import sys
  from colorsys import rgb_to_hls
  from contextlib import contextmanager
  from ctypes import c_char_p, c_void_p, cdll
  from pathlib import Path
  import numpy
  from ...fixes import _compare_version
  from ...utils import _check_qt_version, _validate_type, logger, warn
  from ..utils import _get_cmap
label_desc: Use image node_id 15 for calling a global function with example usage: _notebook_vtk_works() and returns: False, True, True, True