<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove(self, name):
 """Remove a transform in the chain."""

        cpu_transforms = self._remove_transform(self.cpu_transforms, name)
        gpu_transforms = self._remove_transform(self.gpu_transforms, name)
        return (TransformChain().add_on_cpu(cpu_transforms).
                add_on_gpu(gpu_transforms))