docstr: Should fail with helpful error if runtime env setup fails.
code: def test_bad_runtime_env(self, ray_start_stop):
      """Should fail with helpful error if runtime env setup fails."""
      stdout, _ = _run_cmd(
          'ray job submit --runtime-env-json=\'{"pip": '
          '["does-not-exist"]}\' -- echo hi',
          should_fail=True,
      )
      assert "Tailing logs until the job exits" in stdout
      assert "runtime_env setup failed" in stdout
      assert (
          "No matching distribution found for does-not-exist" 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 1 for calling the TestRuntimeEnv obj's underlying member method code with example usage: obj.test_bad_runtime_env(ray_start_stop) without return types