<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def curtail(self, methodology, curtailment_timeseries, **kwargs):
 """ Sets up curtailment time series. Curtailment time series are written into :class:`~.grid.network.TimeSeries`. See :class:`~.grid.network.CurtailmentControl` for more information on parameters and methodologies. """

        CurtailmentControl(edisgo=self, methodology=methodology,
                           curtailment_timeseries=curtailment_timeseries,
                           **kwargs)