code: def test_add_new_params_to_records():
      """Tests `add_new_params_to_records`."""
      grid_seed_dict = {"a": [1, 2, 3], "cat": ["boz", "asb"]}
  
      var_names = list(grid_seed_dict.keys())
      combinations_list = list(
          itertools.product(*[grid_seed_dict[var] for var in var_names])
      )
  
      df = pd.DataFrame(combinations_list, columns=var_names)
  
      records = df.to_dict("records")
      expanded_param_list = add_new_params_to_records(
          new_params={"dog": [1, 3], "horse": [13, 17]}, records=records
      )
  
      assert (len(expanded_param_list)) == len(records) * 2 * 2
      assert expanded_param_list[0] == {
          "a": 1,
          "cat": "boz",
          "dog": 1,
          "horse": 13,
      }
      assert expanded_param_list[-1] == {
          "a": 3,
          "cat": "asb",
          "dog": 3,
          "horse": 17,
      }
  
imports: import itertools
  import numpy
  import pandas
  import pytest
  from testfixtures import LogCapture
  from greykite.common.constants import ANOMALY_COL
  from greykite.common.constants import END_TIME_COL
  from greykite.common.constants import LOGGER_NAME
  from greykite.common.constants import START_TIME_COL
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import TimeFeaturesEnum
  from greykite.common.testing_utils import assert_equal
  from greykite.detection.detector.ad_utils import add_new_params_to_records
  from greykite.detection.detector.ad_utils import get_anomaly_df
  from greykite.detection.detector.ad_utils import get_anomaly_df_from_outliers
  from greykite.detection.detector.ad_utils import get_canonical_anomaly_df
  from greykite.detection.detector.ad_utils import get_timestamp_ceil
  from greykite.detection.detector.ad_utils import get_timestamp_floor
  from greykite.detection.detector.ad_utils import optimize_df_with_constraints
  from greykite.detection.detector.ad_utils import partial_return
  from greykite.detection.detector.ad_utils import validate_volatility_features
  from greykite.detection.detector.ad_utils import vertical_concat_dfs
label_desc: Use image node_id 4 for calling a global function with example usage: test_add_new_params_to_records() without return types