code: def test_non_string_input(self):
      with pytest.raises(
          TypeError, match="TextLanguageRouter expects a str as input."
      ):
          classifier = TextLanguageRouter()
          classifier.run(
              text=Document(content="This is an english sentence.")
          )
  
file_path: haystack/test/components/routers/test_text_language_router.py
imports: import logging
  import pytest
  from haystack import Document
  from haystack.components.routers import TextLanguageRouter
label_desc: Use image node_id 1 for calling the TestTextLanguageRouter obj's underlying member method code with example usage: obj.test_non_string_input() without return types