code: def test_get_best_step_return_average_epoch():
      class History(keras.callbacks.History):
          def __init__(self, history):
              self.history = history
  
      results = [
          History(
              {
                  "val_loss": [5, 8, 3, 1, 2],
                  "val_accuracy": [5, 8, 3, 1, 2],
              }
          ),
          History(
              {
                  "val_loss": [5, 8, 3, 2, 1],
                  "val_accuracy": [5, 8, 3, 1, 2],
              }
          ),
      ]
      assert (
          tuner_utils.get_best_step(
              results,
              obj_module.Objective("val_loss", "min"),
          )
          == 3
      )
  
file_path: keras-tuner/keras_tuner/engine/tuner_utils_test.py
imports: import os
  import numpy
  import pytest
  from keras_tuner.backend import keras
  from keras_tuner.engine import objective
  from keras_tuner.engine import tuner_utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_best_step_return_average_epoch() without return types