def atleast_3d(*arys):
    res = []
    for a in arys:
        if not isinstance(a, cupy.ndarray):
            raise TypeError('Only cupy arrays can be atleast_3d')
        if a.ndim == 0:
            a = a.reshape(1, 1, 1)
        elif a.ndim == 1:
            a = a[cupy.newaxis, :, cupy.newaxis]
        elif a.ndim == 2:
            a = a[:, :, cupy.newaxis]
        res.append(a)
    if len(res) == 1:
        res = res[0]
    return res
Each user will get their own urgent stockout notification.
dataset/ETHPy150Open pfnet/chainer/cupy/manipulation/dims.py/atleast_3d--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/custom/ewsghana/tests/test_notifications.py/UrgentStockoutNotificationTestCase.test_multiple_users