def print_project_policies_rejection(policy_dict):
    """ Prints the the policy and corresponding rejected resources from projects"""
    output = ''
    for policy in policy_dict:
        output += 'Rejected by Policy ' + '"' + policy + '":\n'
        for node in policy_dict[policy]:
            output += '\t* ' + node.resource.displayName
            licenses = node.resource.licenses
            if licenses is not None:
                license_output = ' ('
                for lice in licenses:
                    license_output += lice + ', '
                output += license_output[:-2] + ') \n'
    return output
