def dict_to_numpy_dict(obj_dict):
    """
    Convert a dictionary of lists into a dictionary of numpy arrays
    """
    return {key: np.asarray(value) if value is not None else None for key, value in obj_dict.items()}
Convert a dictionary of lists into a dictionary of numpy arrays