code: def test_vtk_points_slice():
      mesh = pv.Sphere()
      n = 10
      orig_points = np.array(mesh.points[:n])
      pts = pv.vtk_points(mesh.points[:n], deep=False)
      assert isinstance(pts, vtk.vtkPoints)
  
      del mesh
      gc.collect()
      assert np.allclose(vtk_to_numpy(pts.GetData()), orig_points)
  
file_path: pyvista/tests/plotting/test_collection.py
imports: import gc
  import weakref
  import numpy
  import vtk
  import pyvista
  from pyvista.core._vtk_core import vtk_to_numpy
label_desc: Use image node_id 6 for calling a global function with example usage: test_vtk_points_slice() without return types