code: def test_init_cell_array_from_arrays(offsets, connectivity, deep):
      cell_array = pv.core.cell.CellArray.from_arrays(
          offsets, connectivity, deep=deep
      )
      assert np.array_equal(
          np.array(connectivity), cell_array.connectivity_array
      )
      assert np.array_equal(np.array(offsets), cell_array.offset_array)
      assert (
          cell_array.n_cells
          == cell_array.GetNumberOfCells()
          == len(offsets) - 1
      )
  
imports: from types import GeneratorType
  import numpy
  import pytest
  import vtk
  from vtk.util.numpy_support import vtk_to_numpy
  import pyvista
  from pyvista import Cell, CellType
  from pyvista.core.utilities.cells import numpy_to_idarr
  from pyvista.examples import cells, load_airplane, load_explicit_structured, load_hexbeam, load_rectilinear, load_structured, load_tetbeam, load_uniform
label_desc: Use image node_id 29 for calling a global function with example usage: test_init_cell_array_from_arrays(offsets, connectivity, deep) without return types