def close_cases(case_ids, domain, user):

    if hasattr(user, '_id'):
        user_id = user._id
        username = user.username
    else:
        user_id = user
        username = user

    case_blocks = [ElementTree.tostring(CaseBlock(
        create=False,
        case_id=case_id,
        close=True,
    ).as_xml()) for case_id in case_ids]

    return submit_case_blocks(case_blocks, domain, username, user_id)
Shuffles the input data and splits it into a new set of images. This resembles the experimental setup
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/case/cleanup.py/close_cases--crossover with--dataset/ETHPy150Open bytefish/facerec/py/apps/scripts/lpq_experiment.py/partition_data