code: def create_cylinder(radius, length, center=(0.0, 0.0, 0.0)):
      """Creates the data of a cylinder oriented along z axis whose center, radius and length are given as inputs
      Based on the example given at: https://stackoverflow.com/a/49311446/2602319
      """
      z = np.linspace(0, length, 100)
      theta = np.linspace(0, 2 * np.pi, 100)
      theta_grid, z_grid = np.meshgrid(theta, z)
      x_grid = radius * np.cos(theta_grid) + center[0]
      y_grid = radius * np.sin(theta_grid) + center[1]
      z_grid = z_grid + 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 1 for calling a global function with example usage: create_cylinder(radius, length, center) and returns: x_grid,  y_grid,  z_grid