def log_metrics(self, **kwargs):
    self._print(', '.join(['{}={}'.format(metric, value) for (metric, value) in kwargs.items()]))
def log_metrics(self, **kwargs):
    self._print(', '.join(['{}={}'.format(metric, value) for (metric, value) in kwargs.items()]))