code: def test_metadata(self, ray_start_stop):
      cmd = "echo hello"
      stdout, _ = _run_cmd(
          f'ray job submit --metadata-json=\'{{"key": "value"}}\' -- {cmd}'
      )
      assert "hello" in stdout
      assert "succeeded" in stdout
  
imports: from contextlib import contextmanager
  import ray
  import json
  import os
  import logging
  import sys
  import subprocess
  from typing import Optional, Tuple
  import pytest
label_desc: Use image node_id 5 for calling the TestJobSubmit obj's underlying member method code with example usage: obj.test_metadata(ray_start_stop) without return types