code: def managed_cluster_priority_scheduler(
      managed_cluster_session_priority_scheduler: ManagedCluster,
      request: Any,
  ) -> Iterator[ManagedCluster]:
      config = str(DEVCLUSTER_PRIORITY_SCHEDULER_CONFIG_PATH)
      set_master_port(config)
      nodeid = request.node.nodeid
      managed_cluster_session_priority_scheduler.log_marker(
          f"pytest [{now_ts()}] {nodeid} setup\n"
      )
      yield managed_cluster_session_priority_scheduler
      managed_cluster_session_priority_scheduler.log_marker(
          f"pytest [{now_ts()}] {nodeid} teardown\n"
      )
  
imports: import json
  import os
  import subprocess
  import time
  from typing import Any, Dict, Iterator, List, Union, cast
  import pytest
  from tests import config
  from .abstract_cluster import Cluster
  from .test_users import logged_in_user
  from .utils import now_ts, set_master_port
label_desc: Use image node_id 4 for calling a global function with example usage: managed_cluster_priority_scheduler(managed_cluster_session_priority_scheduler, request) without return types