docstr: Test if optional parameter algorithm works as expected.
docstr_tok: ["Test","if","optional","parameter","algorithm","works","as","expected","."]
code: def test_algorithm(self):
      """
      Test if optional parameter algorithm works as expected.
      """
      self.assertRaises(
          exceptions.AlgorithmNotFound,
          lambda: Correlator(
              self.s1, self.s2, algorithm_name="NotValidAlgorithm"
          ),
      )
      correlator = Correlator(
          self.s1, self.s2, algorithm_name="cross_correlator"
      )
      self.assertEqual(
          self.correlator2.get_correlation_result().coefficient,
          correlator.get_correlation_result().coefficient,
      )
      self.assertEqual(
          self.correlator2.get_correlation_result().shift,
          correlator.get_correlation_result().shift,
      )
  
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 5 for calling the TestCorrelator obj's underlying member method code with example usage: obj.test_algorithm() without return types