code: def test_blend_presets(preset):
      """Test blending presets render a canvas to an array.
  
      Different blending presets are used to test that they properly set
      blend equations.
  
      """
      with TestingCanvas(size=(125, 125), show=True, title="run") as c:
          view = c.central_widget.add_view()
          im1 = np.zeros((100, 100, 4)).astype(np.float32)
          im1[:, :, 1] = 1
          im1[:, :, 3] = 0.4
          # Create the image
          image1 = scene.visuals.Image(im1, parent=view.scene)
          image1.transform = STTransform(translate=(20, 20, -1))
  
          gloo.set_state(blend_equation="min")
          image1.set_gl_state(preset)
  
          rgba_result = c.render()
          assert not np.allclose(rgba_result[..., :3], 0)
  
file_path: vispy/vispy/scene/tests/test_canvas.py
imports: from vispy import gloo, scene
  from vispy.testing import requires_application, TestingCanvas
  from vispy.visuals.transforms import STTransform
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_blend_presets(preset) without return types