code: def restart_agent(
      self, wait_for_amnesia: bool = True, wait_for_agent: bool = True
  ) -> None:
      pass
  
imports: import os
  import subprocess
  import time
  from shlex import split
  from typing import Any, Iterator
  import pytest
  from tests import config
  from .abstract_cluster import Cluster
  from .utils import now_ts
label_desc: Use image node_id 8 for calling the ManagedSlurmCluster obj's underlying member method code with example usage: obj.restart_agent(wait_for_amnesia, wait_for_agent) without return types