def _copy_items(items, source, target, target_user, target_folder_id, ids,
                copy_dir):
    copied_items = dict()
    for item in items:
        itemid = item['id']
        if not ids or itemid in ids:
            target_itemid = _copy_item(item, source, target, target_user,
                                       target_folder_id, None, copy_dir)[0]
            if target_itemid:
                copied_items[itemid] = target_itemid
    return copied_items
dataset/ETHPy150Open Esri/ops-server-config/Publish/Portal/portalpy/provision.py/_copy_items/original