code: def test_lang(self):
      for lang in ["en", "it"]:
          _ = textacy.resources.DepecheMood(lang=lang, word_rep="token")
      for lang in ["es", None]:
          with pytest.raises(ValueError):
              _ = textacy.resources.DepecheMood(lang=lang)
  
file_path: textacy/tests/resources/test_depeche_mood.py
imports: import pytest
  import textacy
  import textacy.resources
label_desc: Use image node_id 1 for calling the TestInitParams obj's underlying member method code with example usage: obj.test_lang() without return types