code: def _update_alg(alg, progress_bar=False, message=""):
      """Update an algorithm with or without a progress bar."""
      if progress_bar:
          with ProgressMonitor(alg, message=message):
              alg.Update()
      else:
          alg.Update()
  
file_path: pyvista/pyvista/core/filters/__init__.py
imports: import pyvista
  from pyvista.core.utilities.helpers import wrap
  from pyvista.core.utilities.observers import ProgressMonitor
  from .composite import CompositeFilters
  from .data_set import DataSetFilters
  from .image_data import ImageDataFilters
  from .poly_data import PolyDataFilters
  from .rectilinear_grid import RectilinearGridFilters
  from .structured_grid import StructuredGridFilters
  from .unstructured_grid import UnstructuredGridFilters
label_desc: Use image node_id 1 for calling a global function with example usage: _update_alg(alg, progress_bar, message) without return types