code: def test_add_patterns():
      # Arrange
      lb = ImageMorph.LutBuilder(op_name="corner")
      assert lb.patterns == ["1:(... ... ...)->0", "4:(00. 01. ...)->1"]
      new_patterns = ["M:(00. 01. ...)->1", "N:(00. 01. ...)->1"]
  
      # Act
      lb.add_patterns(new_patterns)
  
      # Assert
      assert lb.patterns == [
          "1:(... ... ...)->0",
          "4:(00. 01. ...)->1",
          "M:(00. 01. ...)->1",
          "N:(00. 01. ...)->1",
      ]
  
imports: import pytest
  from PIL import Image, ImageMorph, _imagingmorph
  from .helper import assert_image_equal_tofile, hopper
label_desc: Use image node_id 18 for calling a global function with example usage: test_add_patterns() without return types