class_docstr: HolidayCalendar implementation.
  
  Requires the calendar to be bounded. Constructs tables of precomputed values
  of interest for each day in the calendar, which enables better performance
  compared to a more flexible UnboundedHolidayCalendar.
  
  Each instance should be used in the context of only one graph. E.g. one can't
  create a BoundedHolidayCalendar in one tf.function and reuse it in another.
class_docstr_tok: ["HolidayCalendar","implementation",".","Requires","the","calendar","to","be","bounded",".","Constructs","tables","of","precomputed","values","of","interest","for","each","day","in","the","calendar",",","which","enables","better","performance","compared","to","a","more","flexible","UnboundedHolidayCalendar",".","Each","instance","should","be","used","in","the","context","of","only","one","graph",".","E.g",".","one","can't","create","a","BoundedHolidayCalendar","in","one","tf.function","and","reuse","it","in","another","."]
docstr: Returns a tensor of bools for whether given dates are business days.
docstr_tok: ["Returns","a","tensor","of","bools","for","whether","given","dates","are","business","days","."]
code: def is_business_day(self, date_tensor):
      """Returns a tensor of bools for whether given dates are business days."""
      is_bus_day_table = self._compute_is_bus_day_table()
      is_bus_day_int32 = self._gather(
          is_bus_day_table,
          date_tensor.ordinal() - self._ordinal_offset + 1,
      )
      with tf.control_dependencies(
          self._assert_ordinals_in_bounds(date_tensor.ordinal())
      ):
          return tf.cast(is_bus_day_int32, dtype=tf.bool)
  
imports: import attr
  import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import date_tensor
  from tf_quant_finance.datetime import holiday_calendar
  from tf_quant_finance.datetime import periods
label_desc: Use image node_id 2 for calling the BoundedHolidayCalendar obj's underlying member method code with example usage: obj.is_business_day(date_tensor) and returns: tf