code: def do_register_metric_class(clz, names=None, unique_name=None):
      names = (
          [camel_to_snake(clz.__name__)]
          if names is None or len(names) == 0
          else names
      )
      names = [names] if isinstance(names, str) else names
      names = [clean_metric_class_name(name) for name in names]
      if unique_name is None:
          update = {name: clz for name in names}
      else:
          update = {name: (unique_name, clz) for name in names}
      metric_classes_dict.update(update)
      return names
  
file_path: poutyne/poutyne/framework/metrics/metrics_registering.py
imports: from poutyne.framework.metrics.utils import camel_to_snake
label_desc: Use image node_id 5 for calling a global function with example usage: do_register_metric_class(clz, names, unique_name) and returns: names