docstr: Test if optional parameter algorithm works as expected.
docstr_tok: ["Test","if","optional","parameter","algorithm","works","as","expected","."]
code: def test_algorithm_DefaultDetector(self):
      """
      Test if optional parameter algorithm works as expected.
      """
      detector = AnomalyDetector(
          self.s1, algorithm_name="default_detector"
      )
      self.assertEqual(
          detector.get_all_scores().timestamps,
          self.detector1.get_all_scores().timestamps,
      )
      self.assertEqual(
          detector.get_all_scores().values,
          self.detector1.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 12 for calling the TestAnomalyDetector obj's underlying member method code with example usage: obj.test_algorithm_DefaultDetector() without return types