docstr: Test "absolute threshold" algorithm with a upper and lower threshold of 0.2
docstr_tok: ["Test","``","absolute","threshold","''","algorithm","with","a","upper","and","lower","threshold","of","0.2"]
code: def test_absolute_threshold_algorithm(self):
      """
      Test "absolute threshold" algorithm with a upper and lower threshold of 0.2
      """
      detector = AnomalyDetector(
          self.s1,
          algorithm_name="absolute_threshold",
          algorithm_params={
              "absolute_threshold_value_upper": 0.2,
              "absolute_threshold_value_lower": 0.2,
          },
      )
      anomalies = detector.get_anomalies()
      self.assertTrue(anomalies is not None)
      self.assertTrue(len(anomalies) > 0)
      self.assertRaises(
          exceptions.RequiredParametersNotPassed,
          lambda: AnomalyDetector(
              self.s1, algorithm_name="absolute_threshold"
          ),
      )
  
imports: import os
  import sys
  import unittest
  from luminol import exceptions
  from luminol.anomaly_detector import AnomalyDetector
  from luminol.modules.time_series import TimeSeries
  from luminol.algorithms.anomaly_detector_algorithms import AnomalyDetectorAlgorithm
label_desc: Use image node_id 7 for calling the TestAnomalyDetector obj's underlying member method code with example usage: obj.test_absolute_threshold_algorithm() without return types