code: def test_text_illegal_type_error():
      analyser = input_analysers.TextAnalyser()
      dataset = tf.data.Dataset.from_tensor_slices(
          np.random.rand(100, 1)
      ).batch(32)
  
      with pytest.raises(TypeError) as info:
          for data in dataset:
              analyser.update(data)
          analyser.finalize()
  
      assert "Expect the data to TextInput to be strings" in str(
          info.value
      )
  
file_path: autokeras/autokeras/analysers/input_analysers_test.py
imports: import copy
  import numpy
  import pandas
  import pytest
  import tensorflow
  from autokeras import test_utils
  from autokeras.analysers import input_analysers
label_desc: Use image node_id 10 for calling a global function with example usage: test_text_illegal_type_error() without return types