docstr: Load time series.
  :param time_series: a TimeSeries, a dictionary or a path to a csv file(str).
  :return TimeSeries: a TimeSeries object.
docstr_tok: ["Load","time","series",".",":","param","time_series",":","a","TimeSeries",",","a","dictionary","or","a","path","to","a","csv","file","(","str",")",".",":","return","TimeSeries",":","a","TimeSeries","object","."]
code: def _load(self, time_series):
      """
      Load time series.
      :param time_series: a TimeSeries, a dictionary or a path to a csv file(str).
      :return TimeSeries: a TimeSeries object.
      """
      if not time_series:
          return None
      if isinstance(time_series, TimeSeries):
          return time_series
      if isinstance(time_series, dict):
          return TimeSeries(time_series)
      return TimeSeries(utils.read_csv(time_series))
  
file_path: luminol/src/luminol/anomaly_detector.py
imports: from luminol import exceptions, utils
  from luminol.algorithms.anomaly_detector_algorithms.all import anomaly_detector_algorithms
  from luminol.modules.anomaly import Anomaly
  from luminol.modules.time_series import TimeSeries
  from luminol.constants import ANOMALY_DETECTOR_ALGORITHM, ANOMALY_THRESHOLD, ANOMALY_DETECTOR_REFINE_ALGORITHM, DEFAULT_SCORE_PERCENT_THRESHOLD
label_desc: Use image node_id 2 for calling the AnomalyDetector obj's underlying member method code with example usage: obj._load(time_series) and returns: TimeSeries, None, time_series, TimeSeries