code: def test_init_cell_array_from_regular_cells(cells, deep):
      cell_array = pv.core.cell.CellArray.from_regular_cells(
          cells, deep=deep
      )
      assert np.array_equal(np.array(cells), cell_array.regular_cells)
      assert (
          cell_array.n_cells
          == cell_array.GetNumberOfCells()
          == len(cells)
      )
  
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 30 for calling a global function with example usage: test_init_cell_array_from_regular_cells(cells, deep) without return types