<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scale_tax_scales(self, factor):
 """Scale all the MarginalRateTaxScales in the node."""

        assert isinstance(factor, (float, int))
        scaled_tax_scale = self.copy()
        return scaled_tax_scale.multiply_thresholds(factor)