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","."]
code: def _assert_ordinals_in_bounds(self, ordinals):
      assert1 = tf.debugging.assert_greater_equal(
          ordinals, self._ordinal_offset, message=_OUT_OF_BOUNDS_MSG
      )
      assert2 = tf.debugging.assert_less(
          ordinals,
          self._ordinal_offset + self._calendar_size,
          message=_OUT_OF_BOUNDS_MSG,
      )
      return [assert1, assert2]
  
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 16 for calling the BoundedHolidayCalendar obj's underlying member method code with example usage: obj._assert_ordinals_in_bounds(ordinals) and returns: list