def validate_given_deploy_groups(service_deploy_groups, args_deploy_groups):
    if len(args_deploy_groups) is 0:
        valid_deploy_groups = set(service_deploy_groups)
        invalid_deploy_groups = set([])
    else:
        valid_deploy_groups = set(args_deploy_groups).intersection(service_deploy_groups)
        invalid_deploy_groups = set(args_deploy_groups).difference(service_deploy_groups)

    return valid_deploy_groups, invalid_deploy_groups
Given two lists of deploy groups, return the intersection and difference between them.
dataset/ETHPy150Open Yelp/paasta/paasta_tools/cli/cmds/rollback.py/validate_given_deploy_groups