from typing import List


def batch_inference_result_split(results: List, keys: List):
    """
    Split inference result into a dict with provided key and result dicts.
    The length of results and keys must match
    :param results:
    :param keys:
    :return:
    """

    ret = {}
    for result, key in zip(results, keys):
        ret[key] = result

    return ret