code: def test_extract_and_score(file_path=None):
      if file_path:
          documents = load_files_from_path(file_path)
          np = NPScorer()
          phrases = np.score_documents(
              documents, return_all=True, min_tf=1
          )
          assert phrases
  
imports: from nlp_architect.utils.io import load_files_from_path
  from .np_scorer import NPScorer
label_desc: Use image node_id 2 for calling a global function with example usage: test_extract_and_score(file_path) without return types