def METHOD_NAME(self):
    coefficients_dict = isinstance(self.coefficients, dict)
    order_dict = isinstance(self.order, dict)
    if coefficients_dict != order_dict:
        message = 'If one of the arguments is a dict, all must be'
        raise ValueError(message)
    return coefficients_dict and order_dict