def retrieve_values_dict_from_payload(command_request):
    """
    Helper method to retrieve the values portion of the response payload.
    :param command_request: The full dictionary of the command request which contains the payload.
    :return: The values dictionary from the payload.
    """
    pnp_key = "commandRequest"
    values = {}
    if not command_request.payload:
        print("Payload was empty.")
    elif pnp_key not in command_request.payload:
        print("There was no payload for {key}.".format(key=pnp_key))
    else:
        command_request_payload = command_request.payload
        values = command_request_payload[pnp_key]["value"]
    return values