<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build(self, klass, name="default", amount=None):
 """ Makes a factory builder with a specified amount. :param klass: The class :type klass: class :param name: The type :type name: str :param amount: The number of models to create :type amount: int :return: mixed """

        if amount is None:
            if isinstance(name, int):
                amount = name
                name = "default"
            else:
                amount = 1

        return self.of(klass, name).times(amount)