class_docstr: Moment for constraining the worst-case loss by a group.
  
  For more information refer to the :ref:`user guide <bounded_group_loss>`.
class_docstr_tok: ["Moment","for","constraining","the","worst-case","loss","by","a","group",".","For","more","information","refer","to","the",":","ref",":","`","user","guide","<","bounded_group_loss",">","`","."]
code: def __init__(self, loss, *, upper_bound=None):
      super().__init__(loss, upper_bound=upper_bound, no_groups=False)
  
imports: import numpy
  import pandas
  from fairlearn.utils._input_validation import _validate_and_reformat_input
  from .moment import _ALL, _GROUP_ID, _LABEL, _LOSS, _PREDICTION, LossMoment
label_desc: Use image node_id 1 to create a new BoundedGroupLoss object from inherited base classes: ConditionalLossMoment with example: obj = BoundedGroupLoss(loss)