code: def test_job_queue_adjust_weight() -> None:
      config = conf.tutorials_path("mnist_pytorch/const.yaml")
      model = conf.tutorials_path("mnist_pytorch")
      exp_ids = [exp.create_experiment(config, model) for _ in range(2)]
  
      try:
          jobs = JobInfo()
          ok = jobs.refresh_until_populated()
          assert ok
  
          ordered_ids = jobs.get_ids()
          subprocess.run(
              ["det", "job", "update", ordered_ids[0], "--weight", "10"]
          )
  
          sleep(2)
          jobs.refresh()
          new_weight = jobs.get_job_weight(ordered_ids[0])
          assert new_weight == "10"
  
          subprocess.run(
              [
                  "det",
                  "job",
                  "update-batch",
                  f"{ordered_ids[1]}.weight=10",
              ]
          )
  
          sleep(2)
          jobs.refresh()
          new_weight = jobs.get_job_weight(ordered_ids[1])
          assert new_weight == "10"
      finally:
          # Avoid leaking experiments even if this test fails.
          # Leaking experiments can block the cluster and other tests from running other tasks
          # while the experiments finish.
          exp.kill_experiments(exp_ids)
  
file_path: determined/e2e_tests/tests/cluster/test_job_queue.py
imports: import subprocess
  from time import sleep
  from typing import Dict, List, Tuple
  import pytest
  from tests import config
  from tests import experiment
label_desc: Use image node_id 1 for calling a global function with example usage: test_job_queue_adjust_weight() without return types