code: def ttr_doc(lang_en):
      text = (
          "Mary had a little lamb, its fleece was white as snow. "
          "And everywhere that Mary went, the lamb was sure to go."
      )
      return textacy.make_spacy_doc(text, lang=lang_en)
  
file_path: textacy/tests/text_stats/test_diversity.py
imports: import pytest
  import textacy
  from textacy.text_stats import diversity
label_desc: Use image node_id 1 for calling a global function with example usage: ttr_doc(lang_en) and returns: textacy