code: def test_pyramid():
      pointa = [1.0, 1.0, 1.0]
      pointb = [-1.0, 1.0, 1.0]
      pointc = [-1.0, -1.0, 1.0]
      pointd = [1.0, -1.0, 1.0]
      pointe = [0.0, 0.0, 0.0]
      points = np.array([pointa, pointb, pointc, pointd, pointe])
  
      mesh = pv.Pyramid(points)
      assert mesh.n_points
      assert mesh.n_cells
      assert np.allclose(mesh.points, points)
  
      # test pyramid with default points
      mesh = pv.Pyramid()
      assert isinstance(mesh, pv.UnstructuredGrid)
  
imports: from itertools import permutations
  import re
  import numpy
  import pytest
  import pyvista
label_desc: Use image node_id 38 for calling a global function with example usage: test_pyramid() without return types