class_docstr: Indicator for periodically resetting the tree state after a certain time.
  
  The indicator will maintain a state to track the previous restart time.
class_docstr_tok: ["Indicator","for","periodically","resetting","the","tree","state","after","a","certain","time",".","The","indicator","will","maintain","a","state","to","track","the","previous","restart","time","."]
docstr: Construct the `PeriodicTimeRestartIndicator`.
  
  Args:
    period_seconds: The `next` function will return `True` if called after
      `period_seconds`.
docstr_tok: ["Construct","the","`","PeriodicTimeRestartIndicator","`",".","Args",":","period_seconds",":","The","`","next","`","function","will","return","`","True","`","if","called","after","`","period_seconds","`","."]
code: def __init__(self, period_seconds: float):
      """Construct the `PeriodicTimeRestartIndicator`.
  
      Args:
        period_seconds: The `next` function will return `True` if called after
          `period_seconds`.
      """
      if period_seconds <= 0:
          raise ValueError(
              "Restart period_seconds should be larger than 0, got "
              f"{period_seconds}"
          )
      self.period_seconds = period_seconds
  
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 1 to create a new PeriodicTimeRestartIndicator object from inherited base classes: RestartIndicator with example: obj = PeriodicTimeRestartIndicator(period_seconds)