code: def vtk_array_to_tuple(arr):
      return tuple(
          arr.GetValue(i) for i in range(arr.GetNumberOfValues())
      )
  
imports: import itertools
  import platform
  import weakref
  import numpy
  import pytest
  from vtkmodules.vtkRenderingContext2D import vtkPen
  import pyvista
  from pyvista import examples
  from pyvista.plotting import charts
  from pyvista.plotting.colors import COLOR_SCHEMES
label_desc: Use image node_id 2 for calling a global function with example usage: vtk_array_to_tuple(arr) and returns: tuple