code: def need_restart(self, value: bool) -> None:
      # Compatibility setter for need_restart.
      if value:
          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 3 for calling the State obj's underlying member method code with example usage: obj.need_restart(value) without return types