code: def get_single_io_auto_model(tmp_path):
      return ak.AutoModel(
          ak.ImageInput(),
          ak.RegressionHead(),
          directory=tmp_path,
          max_trials=2,
      )
  
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 7 for calling a global function with example usage: get_single_io_auto_model(tmp_path) and returns: ak