code: def managed_slurm_cluster_session(
      request: Any,
  ) -> Iterator[ManagedSlurmCluster]:
      with ManagedSlurmCluster() as msc:
          yield msc
  
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 1 for calling a global function with example usage: managed_slurm_cluster_session(request) without return types