code: def test_pyvistandarray_assign(sphere):
      sphere.point_data["data"] = range(sphere.n_points)
  
      # this might leave a reference behind if we don't properly use the pointer
      # to the vtk array.
      sphere.point_data["data"] = sphere.point_data["data"]
  
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 1 for calling a global function with example usage: test_pyvistandarray_assign(sphere) without return types