code: def test_matrix_wrong_mode():
      # Arrange
      im = hopper("L")
      # fmt: off
      matrix = (
          0.412453, 0.357580, 0.180423, 0,
          0.212671, 0.715160, 0.072169, 0,
          0.019334, 0.119193, 0.950227, 0)
      # fmt: on
      assert im.mode == "L"
  
      # Act / Assert
      with pytest.raises(ValueError):
          im.convert(mode="L", matrix=matrix)
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image
  from .helper import assert_image, assert_image_equal, assert_image_similar, hopper
label_desc: Use image node_id 21 for calling a global function with example usage: test_matrix_wrong_mode() without return types