code: def test_solid_sphere_tol_angle(radians):
      max_phi = np.pi if radians else 180.0
  
      # when phi point not on axis, it is skipped in point ordering
      # When radius_resolution=2, there are a maximum of two axis points
      solid_sphere = pv.SolidSphere(
          start_phi=1e-3, radius_resolution=2, radians=radians
      )
      # start_phi is greater than tol, so the positive axis point is skipped
      assert np.allclose(solid_sphere.points[1, :], [0.0, 0.0, -0.5])
      # when end_phi is greater than tol, the negative axis point is skipped
      # that next points is above the z axis
      solid_sphere = pv.SolidSphere(
          end_phi=max_phi - 1e-3, radius_resolution=2, radians=radians
      )
      assert solid_sphere.points[2, 2] > 0.0
  
      solid_sphere = pv.SolidSphere(
          start_phi=1e-3,
          radius_resolution=2,
          radians=radians,
          tol_angle=1e-2,
      )
      # Positive axis point is there, but it is now slightly offset.
      assert np.allclose(
          solid_sphere.points[1, :], [0.0, 0.0, 0.5], atol=1e-3
      )
      # Negative axis point is there
      solid_sphere = pv.SolidSphere(
          end_phi=max_phi - 1e-3,
          radius_resolution=2,
          radians=radians,
          tol_angle=1e-2,
      )
      assert np.allclose(
          solid_sphere.points[2, :], [0.0, 0.0, -0.5], atol=1e-3
      )
  
      # When theta is not detected to overlap it will result in more points
      reference = pv.SolidSphere(radians=radians)
      solid_sphere = pv.SolidSphere(start_theta=1e-3, radians=radians)
      assert solid_sphere.n_points > reference.n_points
      solid_sphere = pv.SolidSphere(
          start_theta=1e-3, radians=radians, tol_angle=1e-1
      )
      assert solid_sphere.n_points == reference.n_points
  
imports: from itertools import permutations
  import re
  import numpy
  import pytest
  import pyvista
label_desc: Use image node_id 21 for calling a global function with example usage: test_solid_sphere_tol_angle(radians) without return types