code: def _check_callable(func, name="callback"):
      """Check if a variable is callable."""
      if func and not callable(func):
          raise TypeError(
              f"`{name}` must be a callable, not {type(func)}."
          )
      return func
  
imports: import numpy
  import pyvista
  from pyvista.core.errors import VTKVersionError
  from pyvista.core.utilities.misc import try_callback
  from .None import _vtk
label_desc: Use image node_id 2 for calling a global function with example usage: _check_callable(func, name) and returns: func