code: def __to_elapsed(self, agg_key):
      # TODO: Add documentation
      start_val = self.stat_aggregates["times"][agg_key]
      now = datetime.now()
      if isinstance(start_val, list):
          self.stat_aggregates["times"][agg_key][-1] = (
              now - start_val[-1]
          ).total_seconds()
      else:
          self.stat_aggregates["times"][agg_key] = (
              now - start_val
          ).total_seconds()
  
imports: from hyperparameter_hunter.callbacks.bases import BaseAggregatorCallback
  from datetime import datetime
  import numpy
label_desc: Use image node_id 9 for calling the AggregatorTimes obj's underlying member method code with example usage: obj.__to_elapsed(agg_key) without return types