docstr: Get the specific algorithm and merge the algorithm params.
  :param str algorithm: name of the algorithm to use.
  :param dict algorithm_params: additional params for the specific algorithm.
docstr_tok: ["Get","the","specific","algorithm","and","merge","the","algorithm","params",".",":","param","str","algorithm",":","name","of","the","algorithm","to","use",".",":","param","dict","algorithm_params",":","additional","params","for","the","specific","algorithm","."]
code: def _get_algorithm_and_params(self, algorithm_name, algorithm_params):
      """
      Get the specific algorithm and merge the algorithm params.
      :param str algorithm: name of the algorithm to use.
      :param dict algorithm_params: additional params for the specific algorithm.
      """
      algorithm_name = algorithm_name or CORRELATOR_ALGORITHM
      try:
          self.algorithm = correlator_algorithms[algorithm_name]
      except KeyError:
          raise exceptions.AlgorithmNotFound(
              "luminol.Correlator: "
              + str(algorithm_name)
              + " not found."
          )
      # Merge parameters.
      if algorithm_params:
          if not isinstance(algorithm_params, dict):
              raise exceptions.InvalidDataFormat(
                  "luminol.Correlator: algorithm_params passed is not a dictionary."
              )
          else:
              # self.algorithm_params = dict(algorithm_params.items() + self.algorithm_params.items())
              self.algorithm_params = self.algorithm_params.copy()
              self.algorithm_params.update(algorithm_params)
  
file_path: luminol/src/luminol/correlator.py
imports: from luminol import exceptions, utils
  from luminol.algorithms.correlator_algorithms.all import correlator_algorithms
  from luminol.anomaly_detector import AnomalyDetector
  from luminol.constants import CORRELATOR_ALGORITHM
  from luminol.modules.time_series import TimeSeries
label_desc: Use image node_id 4 for calling the Correlator obj's underlying member method code with example usage: obj._get_algorithm_and_params(algorithm_name, algorithm_params) without return types