code: def test_corpus_functionality(corpus):
      assert isinstance(corpus[0], Doc)
      assert list(
          corpus.get(
              lambda doc: doc._.meta["speaker_name"] == "Bernie Sanders"
          )
      )
  
imports: import numpy
  import pytest
  import scipy.sparse
  from spacy.tokens import Doc, Span
  import textacy.datasets
  from textacy import Corpus
  from textacy import extract, preprocessing
  from textacy import load_spacy_lang, make_spacy_doc
  from textacy.extract import keyterms
  from textacy.text_stats import TextStats
  from textacy.tm import TopicModel
  from textacy.representations import Vectorizer
label_desc: Use image node_id 6 for calling a global function with example usage: test_corpus_functionality(corpus) without return types