code: def doc(record):
      doc = textacy.make_spacy_doc(record, lang="en_core_web_sm")
      return doc
  
imports: import collections
  import itertools
  import re
  import pytest
  from spacy.tokens import Span
  import textacy
  import textacy.datasets
  import textacy.extract
  import textacy.preprocessing
label_desc: Use image node_id 3 for calling a global function with example usage: doc(record) and returns: doc