code: def test_tf_function(self):
      # Check that tensor caching doesn't mess with tf.function.
      @tf.function
      def foo():
          cal = bounded_holiday_calendar.BoundedHolidayCalendar(
              weekend_mask=dates.WeekendMask.SATURDAY_SUNDAY,
              holidays=test_data.holidays,
          )
          date_tensor = dates.dates_from_tuples(
              [
                  (2020, 1, 3),
                  (2020, 1, 4),
                  (2021, 12, 24),
                  (2021, 12, 25),
              ]
          )
          return cal.is_business_day(date_tensor)
  
      self.assertAllEqual([True, False, False, False], foo())
  
imports: import datetime
  import functools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tf_quant_finance.datetime import bounded_holiday_calendar
  from tf_quant_finance.datetime import test_data
  from tf_quant_finance.datetime import unbounded_holiday_calendar
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 5 for calling the HolidayCalendarTest obj's underlying member method code with example usage: obj.test_tf_function() and returns: cal