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(
          exceptions.InvalidDataFormat,
          lambda: Correlator(
              self.s1,
              self.s2,
              algorithm_name="cross_correlator",
              algorithm_params=1,
          ),
      )
      correlator = Correlator(
          self.s1,
          self.s2,
          algorithm_name="cross_correlator",
          algorithm_params={"max_shift_seconds": 180},
      )
      self.assertEqual(
          self.correlator2.get_correlation_result().coefficient,
          correlator.get_correlation_result().coefficient,
      )
  
imports: import os
  import sys
  import unittest
  from luminol import exceptions
  from luminol import Luminol
  from luminol.correlator import Correlator
label_desc: Use image node_id 6 for calling the TestCorrelator obj's underlying member method code with example usage: obj.test_algorithm_params() without return types