code: def test_evaluate(tuner_fn, tmp_path):
      x_train = np.random.rand(100, 32)
      y_train = np.random.rand(100, 1)
  
      input_node = ak.Input()
      output_node = input_node
      output_node = ak.DenseBlock()(output_node)
      output_node = ak.RegressionHead()(output_node)
  
      auto_model = ak.AutoModel(
          input_node, output_node, directory=tmp_path, max_trials=1
      )
      auto_model.fit(
          x_train, y_train, epochs=1, validation_data=(x_train, y_train)
      )
      auto_model.evaluate(
          tf.data.Dataset.from_tensor_slices((x_train, y_train))
      )
      assert tuner_fn.called
  
imports: from unittest import mock
  import keras_tuner
  import numpy
  import pytest
  import tensorflow
  import autokeras
  from autokeras import test_utils
label_desc: Use image node_id 6 for calling a global function with example usage: test_evaluate(tuner_fn, tmp_path) without return types