class_docstr: Base class establishing interface for restarting the tree state.
  
  A `RestartIndicator` maintains a state, and each time `next` is called, a bool
  value is generated to indicate whether to restart, and the indicator state is
  advanced.
class_docstr_tok: ["Base","class","establishing","interface","for","restarting","the","tree","state",".","A","`","RestartIndicator","`","maintains","a","state",",","and","each","time","`","next","`","is","called",",","a","bool","value","is","generated","to","indicate","whether","to","restart",",","and","the","indicator","state","is","advanced","."]
docstr: Gets next bool indicator and advances the `RestartIndicator` state.
  
  Args:
    state: The current state.
  
  Returns:
    A pair (value, new_state) where value is bool indicator and new_state
      is the advanced state.
docstr_tok: ["Gets","next","bool","indicator","and","advances","the","`","RestartIndicator","`","state",".","Args",":","state",":","The","current","state",".","Returns",":","A","pair","(","value",",","new_state",")","where","value","is","bool","indicator","and","new_state","is","the","advanced","state","."]
code: def next(self, state):
      """Gets next bool indicator and advances the `RestartIndicator` state.
  
      Args:
        state: The current state.
  
      Returns:
        A pair (value, new_state) where value is bool indicator and new_state
          is the advanced state.
      """
      raise NotImplementedError
  
imports: import abc
  import collections
  from typing import Optional
  import tensorflow
  from tensorflow_privacy.privacy.dp_query import dp_query
label_desc: Use image node_id 2 for calling the RestartIndicator obj's underlying member method code with example usage: obj.next(state) without return types