code: def create_sphere(radius=1.0, center=(0.0, 0.0, 0.0)):
      """
      Creates the data of a sphere whose center, and radius are given as inputs
      """
      # Generate the grid in spherical coordinates
      # Names of the spherical coordinate axes according to ISO convention
      theta = np.linspace(0, np.pi, 50)
      phi = np.linspace(0, 2 * np.pi, 50)
      PHI, THETA = np.meshgrid(phi, theta)
      RHO = radius  # Size of the sphere
  
      # Convert to cartesian coordinates
      x_grid = (RHO * np.sin(THETA) * np.cos(PHI)) + center[0]
      y_grid = (RHO * np.sin(THETA) * np.sin(PHI)) + center[1]
      z_grid = (RHO * np.cos(THETA)) + center[2]
  
      return x_grid, y_grid, z_grid
  
file_path: vispy/examples/basics/visuals/axially_symmetric_surfaces.py
imports: import sys
  import numpy
  from vispy import scene
  from vispy.scene.visuals import SurfacePlot
  from vispy.scene.visuals import XYZAxis
label_desc: Use image node_id 3 for calling a global function with example usage: create_sphere(radius, center) and returns: x_grid,  y_grid,  z_grid