code: def get_doc(
      nlp: Language, file_path: str
  ) -> Doc:  # pylint: disable=W0621
      """
      Doc shared fixture.
  
          file_path:
      String specifying the path to the doc of interest.
  
          returns:
      spaCy EN doc containing the data from ``file_path``.
      """
      text = pathlib.Path(file_path).read_text()
      doc = nlp(text)  # pylint: disable=W0621
      return doc
  
file_path: pytextrank/tests/conftest.py
imports: import pathlib
  import pytest
  import spacy
  from spacy.language import Language
  from spacy.tokens import Doc
label_desc: Use image node_id 2 for calling a global function with example usage: get_doc(nlp, file_path) and returns: doc