def METHOD_NAME(named_summaries):
    names = [n for (n, _) in named_summaries]
    summaries = [s for (_, s) in named_summaries]
    summaries = list(zip(*summaries))
    def event(step, values):
        s = Summary()
        scalar = [
            Summary.Value(
                tag="{}/{}".format(name, field),
                simple_value=v)
            for name, value in zip(names, values)
            for field, v in value._asdict().items()]
        hist = [
            Summary.Value(
                tag="{}/inferred_normal_hist".format(name),
                histo=inferred_histo(value))
            for name, value in zip(names, values)
        ]
        s.value.extend(scalar + hist)
        return Event(wall_time=int(step), step=step, summary=s)
    return [event(step, values)
            for step, values in enumerate(summaries, start=1)]