def format_metric(metric, form):
    """Returns a string representation for metric-format combinations"""
    if callable(metric):
        metric_string = metric.__name__
    else:
        metric_string = str(metric)
    return "{}-{}".format(metric_string, form.__name__)