code: def test_check_tf_version_error():
      utils.tf.__version__ = "2.1.0"
  
      with pytest.warns(ImportWarning) as record:
          utils.check_tf_version()
  
      assert len(record) == 1
      assert (
          "Tensorflow package version needs to be at least"
          in record[0].message.args[0]
      )
  
file_path: autokeras/autokeras/utils/utils_test.py
imports: import numpy
  import pytest
  import tensorflow
  from keras_tuner.engine import hyperparameters
  from autokeras.utils import utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_check_tf_version_error() without return types