code: def __elapsed_helper(self, period):
      times = self.stat_aggregates["times"]
      if period == "total_elapsed":
          return "Time: {}".format(
              sec_to_hms(times[period], as_str=True)
          )
      else:
          return "Time: {}".format(
              sec_to_hms(times[period][-1], as_str=True)
          )
  
imports: from hyperparameter_hunter.callbacks.bases import BaseLoggerCallback
  from hyperparameter_hunter.i_o.reporting import format_evaluation, format_fold_run, _Color
  from hyperparameter_hunter.settings import G
  from hyperparameter_hunter.utils.general_utils import sec_to_hms
  import inspect
label_desc: Use image node_id 9 for calling the LoggerFitStatus obj's underlying member method code with example usage: obj.__elapsed_helper(period) and returns: str, str