"""Batch/single prediction helper functions."""