code: def need_restart(self) -> bool:
      # Compatibility getter for need_restart.
      return self.server_command == "restart"
  
imports: import datetime
  import logging
  import threading
  import time
  from modules import errors, shared, devices
  from typing import Optional
label_desc: Use image node_id 2 for calling the State obj's underlying member method code with example usage: obj.need_restart() and returns: unknown