code: def patterns():
      return [
          {"label": "HELLO", "pattern": "hello world", "id": "hello1"},
          {
              "label": "BYE",
              "pattern": [{"LOWER": "bye"}, {"LOWER": "bye"}],
          },
          {
              "label": "HELLO",
              "pattern": [{"ORTH": "HELLO"}],
              "id": "hello2",
          },
          {"label": "COMPLEX", "pattern": [{"ORTH": "foo", "OP": "*"}]},
          {"label": "TECH_ORG", "pattern": "Apple"},
          {"label": "TECH_ORG", "pattern": "Microsoft"},
      ]
  
imports: import pytest
  from thinc.api import NumpyOps, get_current_ops
  import spacy
  from spacy import registry
  from spacy.errors import MatchPatternError
  from spacy.tests.util import make_tempdir
  from spacy.tokens import Span
  from spacy.training import Example
label_desc: Use image node_id 1 for calling a global function with example usage: patterns() and returns: list