code: def test_invalid_lang(self, lang):
      with pytest.raises(TypeError):
          _ = make_spacy_doc("This is an English sentence.", lang=lang)
  
imports: import pytest
  import spacy
  from textacy import load_spacy_lang, make_spacy_doc
label_desc: Use image node_id 6 for calling the TestMakeSpacyDoc obj's underlying member method code with example usage: obj.test_invalid_lang(lang) without return types