class_docstr: Base algorithm to preserve type.
  
  Parameters
  ----------
  nInputPorts : int, default: 1
      Number of input ports for the algorithm.
  
  nOutputPorts : int, default: 1
      Number of output ports for the algorithm.
docstr: Initialize algorithm.
code: def __init__(self, nInputPorts=1, nOutputPorts=1):
      """Initialize algorithm."""
      _vtk.VTKPythonAlgorithmBase.__init__(
          self,
          nInputPorts=nInputPorts,
          nOutputPorts=nOutputPorts,
      )
  
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 1 to create a new PreserveTypeAlgorithmBase object from inherited base classes: _vtk with example: obj = PreserveTypeAlgorithmBase(nInputPorts, nOutputPorts)