code: def _get_connectivity_array(
      cellarr: _vtk.vtkCellArray,
  ) -> NumpyArray[int]:
      """Return the array with the point ids that define the cells' connectivity."""
      return _vtk.vtk_to_numpy(cellarr.GetConnectivityArray())
  
imports: from __future__ import annotations
  from typing import List, Optional, Sequence, Tuple, Union, cast
  import numpy
  import pyvista
  from .None import _vtk_core
  from ._typing_core import Matrix, NumpyArray, Vector
  from .celltype import CellType
  from .dataset import DataObject
  from .errors import CellSizeError
  from .utilities.cells import ncells_from_cells, numpy_to_idarr
label_desc: Use image node_id 2 for calling a global function with example usage: _get_connectivity_array(cellarr) and returns: _vtk