code: def test_np_annotator_linked(
      model_path, settings_path, text, phrases
  ):
      annotator = SpacyInstance(
          model="en", disable=["textcat", "ner", "parser"]
      ).parser
      annotator.add_pipe(
          annotator.create_pipe("sentencizer"), first=True
      )
      annotator.add_pipe(
          NPAnnotator.load(model_path, settings_path), last=True
      )
      doc = annotator(text)
      noun_phrases = [p.text for p in get_noun_phrases(doc)]
      for p in phrases:
          assert p in noun_phrases
  
file_path: nlp-architect/tests/test_spacy_np_annotator.py
imports: import errno
  import os
  from os import path
  import pytest
  from nlp_architect.pipelines.spacy_np_annotator import NPAnnotator, get_noun_phrases, SpacyNPAnnotator
  from nlp_architect.utils.io import download_unlicensed_file
  from nlp_architect.utils.text import SpacyInstance, try_to_load_spacy
label_desc: Use image node_id 7 for calling a global function with example usage: test_np_annotator_linked(model_path, settings_path, text, phrases) without return types