code: def _format_metrics(metrics, rounder):
      # Adapted from https://github.com/tqdm/tqdm
      postfix = OrderedDict([])
      for key in sorted(metrics.keys()):
          postfix[key] = metrics[key]
  
      for key in postfix.keys():
          try:
              postfix[key] = str(rounder(postfix[key]))
          except TypeError:
              try:
                  postfix[key] = str(list(map(rounder, postfix[key])))
              except TypeError:
                  postfix[key] = str(postfix[key])
      postfix = ", ".join(
          key + "=" + postfix[key].strip() for key in postfix.keys()
      )
      return postfix
  
imports: from __future__ import print_function
  from collections import OrderedDict
  from functools import partial
  from tqdm import tqdm
  import torchbearer
  from torchbearer.callbacks import Callback
label_desc: Use image node_id 1 for calling a global function with example usage: _format_metrics(metrics, rounder) and returns: postfix