code: def test_datetoholiday():
      date_to_holiday = DateToHoliday()
  
      dates = pd.Series(
          [
              datetime(2016, 1, 1),
              datetime(2016, 2, 27),
              datetime(2017, 5, 29, 10, 30, 5),
              datetime(2018, 7, 4),
          ],
      )
  
      holiday_series = date_to_holiday(dates).tolist()
  
      assert holiday_series[0] == "New Year's Day"
      assert np.isnan(holiday_series[1])
      assert holiday_series[2] == "Memorial Day"
      assert holiday_series[3] == "Independence Day"
  
file_path: featuretools/featuretools/tests/primitive_tests/transform_primitive_tests/test_datetoholiday_primitive.py
imports: from datetime import datetime
  import numpy
  import pandas
  import pytest
  from featuretools.primitives import DateToHoliday
label_desc: Use image node_id 1 for calling a global function with example usage: test_datetoholiday() without return types