<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_batch(klass, strategy, size, **kwargs):
 """Create a factory for the given class, and generate instances."""

    return make_factory(klass, **kwargs).generate_batch(strategy, size)