def METHOD_NAME(metric, frame_average="mean", docstring=None):
    """
    Helper function to create video metrics from existing image metrics
    """
    mapping = {
        "mean": np.mean,
        "max": np.max,
        "min": np.min,
    }
    if frame_average not in mapping:
        raise ValueError(f"frame_average {frame_average} not in {tuple(mapping)}")
    frame_average_func = mapping[frame_average]
    @numpy
    def func(x, x_adv):
        frames = []
        for x_frame, x_adv_frame in zip(x, x_adv):
            frames.append(metric(x_frame, x_adv_frame))
        return frame_average_func(frames)
    func.__doc__ = docstring
    return func