original_docstring: 
          We don't introduce a special state to flag when a slice is ALL FAILED, however this helper function helps decide
          when to GC a slice
  
          @return true or false
          
docstring: We don't introduce a special state to flag when a slice is ALL FAILED, however this helper function helps decide
  when to GC a slice
  
  @return true or false
docstring_tokens: We don ' t introduce a special state to flag when a slice is ALL FAILED however this helper function helps decide when to GC a slice @return true or false
code: def all_failed(*, reservations: ReservationSet) -> bool:
          """
          We don't introduce a special state to flag when a slice is ALL FAILED, however this helper function helps decide
          when to GC a slice
  
          @return true or false
          """
          bins = StateBins()
          for r in reservations.values():
              bins.add(s=r.get_state())
  
          if not bins.has_state_other_than(ReservationStates.Failed):
              return True
  
          return False
code_tokens: def all_failed ( * , reservations : ReservationSet ) -> bool : bins = StateBins ( ) for r in reservations . values ( ) : bins . add ( s = r . get_state ( ) ) if not bins . has_state_other_than ( ReservationStates . Failed ) : return True return False
short_docstring: We don't introduce a special state to flag when a slice is ALL FAILED, however this helper function helps decide
  when to GC a slice
short_docstring_tokens: We don ' t introduce a special state to flag when a slice is ALL FAILED however this helper function helps decide when to GC a slice
comment: """
          We don't introduce a special state to flag when a slice is ALL FAILED, however this helper function helps decide
          when to GC a slice
  
          @return true or false
          """