code: def pattern_dicts():
      return [
          {
              "patterns": [[{"ORTH": "a"}], [{"ORTH": "irrelevant"}]],
              "attrs": {
                  "LEMMA": "the",
                  "MORPH": "Case=Nom|Number=Plur",
              },
          },
          # one pattern sets the lemma
          {"patterns": [[{"ORTH": "test"}]], "attrs": {"LEMMA": "cat"}},
          # another pattern sets the morphology
          {
              "patterns": [[{"ORTH": "test"}]],
              "attrs": {"MORPH": "Case=Nom|Number=Sing"},
              "index": 0,
          },
      ]
  
imports: import numpy
  import pytest
  from spacy import registry, util
  from spacy.lang.en import English
  from spacy.pipeline import AttributeRuler
  from spacy.tokens import Doc
  from spacy.training import Example
  from ..util import make_tempdir
label_desc: Use image node_id 2 for calling a global function with example usage: pattern_dicts() and returns: list