code: def test_eq():
      camera = pv.Camera()
      other = pv.Camera()
      for camera_now in camera, other:
          for name, value, _ in configuration:
              setattr(camera_now, name, value)
  
      assert camera == other
  
      # check that changing anything will break equality
      for name, value, _ in configuration:
          original_value = getattr(other, name)
          if isinstance(value, bool):
              changed_value = not value
          elif isinstance(value, (int, float)):
              changed_value = 0
          elif isinstance(value, tuple):
              changed_value = (0.5, 0.5, 0.5)
          else:
              changed_value = -value
          setattr(other, name, changed_value)
          assert camera != other
          setattr(other, name, original_value)
  
      # sanity check that we managed to restore the original state
      assert camera == other
  
imports: import io
  import numpy
  import pytest
  import pyvista
label_desc: Use image node_id 24 for calling a global function with example usage: test_eq() without return types