class_docstr: Trains an instance of the Model class.
docstr: Trains and evalutes the image model.
docstr_tok: ["Trains","and","evalutes","the","image","model","."]
code: def run_model(self, epoch: int) -> dict:
      """Trains and evalutes the image model."""
      self._fit_param()
      train_acc = self._run_training_loop(epoch)
      valid_acc = self.eval_child_model(mode="val", pass_id=epoch)
      logger.info("valid acc: {}".format(valid_acc))
      all_metric = {}
      all_metric.update(train_acc)
      all_metric.update(valid_acc)
      return all_metric
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import time
  import six
  import os
  from typing import Dict, List, Optional, Union, Tuple
  from auto_augment.autoaug.utils import log
  import logging
  import auto_augment
label_desc: Use image node_id 11 for calling the HubFitterClassifer obj's underlying member method code with example usage: obj.run_model(epoch) and returns: all_metric