<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _createscratch(self, shape=1):
 """Creates a scratch FieldArray to use for transforms."""

        self._scratch = record.FieldArray(shape, dtype=[(p, float)
            for p in self.inputs])