docstr: Test if optional parameter algorithm_params works as expected.
docstr_tok: ["Test","if","optional","parameter","algorithm_params","works","as","expected","."]
code: def test_algorithm_params(self):
      """
      Test if optional parameter algorithm_params works as expected.
      """
      self.assertRaises(
          ValueError,
          lambda: AnomalyDetector(
              self.s1,
              algorithm_name="exp_avg_detector",
              algorithm_params="0",
          ),
      )
      detector = AnomalyDetector(
          self.s1,
          algorithm_name="exp_avg_detector",
          algorithm_params={"smoothing_factor": 0.3},
      )
      self.assertNotEqual(
          self.detector1.get_all_scores().values,
          detector.get_all_scores().values,
      )
  
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 14 for calling the TestAnomalyDetector obj's underlying member method code with example usage: obj.test_algorithm_params() without return types