code: def test_distanceholiday():
      distance_to_holiday = DistanceToHoliday("New Year's Day")
      dates = pd.Series(
          [
              datetime(2010, 1, 1),
              datetime(2012, 5, 31),
              datetime(2017, 7, 31),
              datetime(2020, 12, 31),
          ],
      )
  
      expected = [0, -151, 154, 1]
      output = distance_to_holiday(dates).tolist()
      np.testing.assert_array_equal(output, expected)
  
file_path: featuretools/featuretools/tests/primitive_tests/transform_primitive_tests/test_distancetoholiday_primitive.py
imports: from datetime import datetime
  import numpy
  import pandas
  import pytest
  from featuretools.primitives import DistanceToHoliday
label_desc: Use image node_id 1 for calling a global function with example usage: test_distanceholiday() without return types