<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gradient_stops(self):
 """|GradientStops| object providing access to stops of this gradient. Raises |TypeError| when fill is not gradient (call `fill.gradient()` first). Each stop represents a color between which the gradient smoothly transitions. """

        if self.type != MSO_FILL.GRADIENT:
            raise TypeError('Fill is not of type MSO_FILL_TYPE.GRADIENT')
        return self._fill.gradient_stops