class_docstr: MetricsLogger collects metrics measured during experiments.
  
  MetricsLogger is the (only) part of the Metrics API.
  An instance of the class should be created for the Run class, such that the
  log_scalar_metric method is accessible from running experiments using
  _run.metrics.log_scalar_metric.
docstr: Read all measurement events since last call of the method.
  
  :return List[ScalarMetricLogEntry]
docstr_tok: ["Read","all","measurement","events","since","last","call","of","the","method",".",":","return","List","[","ScalarMetricLogEntry","]"]
code: def get_last_metrics(self):
      """Read all measurement events since last call of the method.
  
      :return List[ScalarMetricLogEntry]
      """
      read_up_to = self._logged_metrics.qsize()
      messages = []
      for i in range(read_up_to):
          try:
              messages.append(self._logged_metrics.get_nowait())
          except Empty:
              pass
      return messages
  
file_path: sacred/sacred/metrics_logger.py
imports: import datetime
  import sacred.optional
  from queue import Queue, Empty
label_desc: Use image node_id 3 for calling the MetricsLogger obj's underlying member method code with example usage: obj.get_last_metrics() and returns: messages