def METHOD_NAME(infos):
    """Calculate number of environment frames in a batch of experience."""
    total_num_frames = 0
    for info in infos:
        total_num_frames += info.get("num_frames", 1)
    return total_num_frames