code: def test_list(self, ray_start_stop):
      _run_cmd("ray job submit --job-id='hello_id' -- echo hello")
  
      runtime_env = {"env_vars": {"TEST": "123"}}
      _run_cmd(
          "ray job submit --job-id='hi_id' "
          f"--runtime-env-json='{json.dumps(runtime_env)}' -- echo hi"
      )
      stdout, _ = _run_cmd("ray job list")
      assert "123" in stdout
      assert "hello_id" in stdout
      assert "hi_id" 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 2 for calling the TestJobList obj's underlying member method code with example usage: obj.test_list(ray_start_stop) without return types