code: def restart_master(self) -> None:
      try:
          self.kill_master()
          self._start_devcluster()
      except Exception as e:
          print(e)
          raise
  
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 5 for calling the ManagedSlurmCluster obj's underlying member method code with example usage: obj.restart_master() without return types