code: def test_pattern_syntax_error():
      # Arrange
      lb = ImageMorph.LutBuilder(op_name="corner")
      new_patterns = ["a pattern with a syntax error"]
      lb.add_patterns(new_patterns)
  
      # Act / Assert
      with pytest.raises(Exception) as e:
          lb.build_lut()
      assert (
          str(e.value)
          == 'Syntax error in pattern "a pattern with a syntax error"'
      )
  
imports: import pytest
  from PIL import Image, ImageMorph, _imagingmorph
  from .helper import assert_image_equal_tofile, hopper
label_desc: Use image node_id 20 for calling a global function with example usage: test_pattern_syntax_error() without return types