code: def test_dates_args(dataset, date_col, knot_dates, knot_idx, request):
      df = request.getfixturevalue(dataset)
      date_array = df[date_col]
      knot_idx2 = get_knot_idx(
          date_array=date_array, knot_dates=knot_dates
      )
      freq = pd.infer_freq(date_array)
      knot_dates2 = get_knot_dates(date_array[0], knot_idx, freq)
  
      assert np.all(knot_idx2 == knot_idx)
      assert np.all(knot_dates2 == knot_dates)
  
imports: import pytest
  import numpy
  import pandas
  from orbit.utils.knots import get_knot_idx, get_knot_dates
label_desc: Use image node_id 3 for calling a global function with example usage: test_dates_args(dataset, date_col, knot_dates, knot_idx, request) without return types