<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def kwargs_to_spec(self, **kwargs):
 """ Turn the provided kwargs into arguments ready for toolchain. """


        spec = self.create_spec(**kwargs)
        self.prepare_spec(spec, **kwargs)
        return spec