code: def add_ids_algorithm(inp, point_ids=True, cell_ids=True):
      """Add a filter that adds point and/or cell IDs.
  
      Parameters
      ----------
      inp : pyvista.DataSet
          The input data to which the IDs will be added.
      point_ids : bool, default: True
          If ``True``, point IDs will be added to the input data.
      cell_ids : bool, default: True
          If ``True``, cell IDs will be added to the input data.
  
      Returns
      -------
      AddIDsAlgorithm
          AddIDsAlgorithm filter.
      """
      alg = AddIDsAlgorithm(point_ids=point_ids, cell_ids=cell_ids)
      set_algorithm_input(alg, inp)
      return alg
  
imports: import traceback
  import numpy
  import pyvista
  from pyvista.core.errors import PyVistaPipelineError
  from pyvista.core.utilities.helpers import wrap
  from pyvista.plotting import _vtk
label_desc: Use image node_id 7 for calling a global function with example usage: add_ids_algorithm(inp, point_ids, cell_ids) and returns: alg