code: def test_auto_model_objective_is_kt_objective(tmp_path):
      auto_model = ak.AutoModel(
          ak.ImageInput(), ak.RegressionHead(), directory=tmp_path
      )
  
      assert isinstance(auto_model.objective, keras_tuner.Objective)
  
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 2 for calling a global function with example usage: test_auto_model_objective_is_kt_objective(tmp_path) without return types