def _load(self, time_series):
if isinstance(time_series, TimeSeries):<EOL><INDENT>return time_series<EOL><DEDENT>if isinstance(time_series, dict):<EOL><INDENT>return TimeSeries(time_series)<EOL><DEDENT>return TimeSeries(utils.read_csv(time_series))<EOL>
Load time series into a TimeSeries object.
:param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).
:return TimeSeries: a TimeSeries object.