code: def intermediate_value(self, metric):
          
          if ':' in metric:
              metric_name = metric.split(':')[-1]
          else:
              metric_name = metric
  
          return self.metrics_by_name[metric_name].value()
docs: Return an intermediate (inter-epoch) value of a metric