code: def test_cylinder():
      """Test cylinder function"""
      md = create_cylinder(10, 20, radius=[10, 10])
      radii = np.sqrt((md.get_vertices()[:, :2] ** 2).sum(axis=1))
      assert_allclose(radii, np.ones_like(radii) * 10)
  
file_path: vispy/vispy/geometry/tests/test_generation.py
imports: import numpy
  from numpy.testing import assert_array_equal, assert_allclose
  from vispy.testing import run_tests_if_main
  from vispy.geometry import create_box, create_cube, create_cylinder, create_sphere, create_plane
label_desc: Use image node_id 4 for calling a global function with example usage: test_cylinder() without return types