code: def nlp():
      @registry.misc("cope_lookups")
      def cope_lookups():
          lookups = Lookups()
          lookups.add_table(
              "lemma_lookup", {"cope": "cope", "coped": "cope"}
          )
          lookups.add_table("lemma_index", {"verb": ("cope", "cop")})
          lookups.add_table(
              "lemma_exc", {"verb": {"coping": ("cope",)}}
          )
          lookups.add_table("lemma_rules", {"verb": [["ing", ""]]})
          return lookups
  
      nlp = English()
      nlp.config["initialize"]["components"]["lemmatizer"] = {
          "lookups": {"@misc": "cope_lookups"}
      }
      return nlp
  
file_path: spaCy/spacy/tests/pipeline/test_lemmatizer.py
imports: import pickle
  import pytest
  from spacy import registry, util
  from spacy.lang.en import English
  from spacy.lookups import Lookups
  from ..util import make_tempdir
label_desc: Use image node_id 1 for calling a global function with example usage: nlp() and returns: nlp, lookups