code: def test_config_metadata(shutdown_only):
      job_config = JobConfig(metadata={"abc": "xyz"})
      job_config.set_metadata("xyz", "abc")
  
      ray.init(job_config=job_config)
  
      from_worker = (
          ray._private.worker.global_worker.core_worker.get_job_config()
      )
  
      assert dict(from_worker.metadata) == job_config.metadata
  
imports: import os
  import subprocess
  import sys
  import tempfile
  import time
  import re
  import json
  from subprocess import Popen, PIPE, STDOUT, list2cmdline
  from typing import List
  from pathlib import Path
  import pytest
  import ray
  from ray._private.test_utils import run_string_as_driver, run_string_as_driver_nonblocking, wait_for_condition, format_web_url
  from ray.job_config import JobConfig
  from ray.job_submission import JobSubmissionClient
  from ray.dashboard.modules.job.pydantic_models import JobDetails
label_desc: Use image node_id 6 for calling a global function with example usage: test_config_metadata(shutdown_only) without return types