docstr: Should tail logs and wait for process to exit.
code: def test_basic_submit(self, ray_start_stop):
      """Should tail logs and wait for process to exit."""
      cmd = "sleep 1 && echo hello && sleep 1 && echo hello"
      stdout, _ = _run_cmd(f"ray job submit -- bash -c '{cmd}'")
      assert "hello\nhello" 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 1 for calling the TestJobSubmit obj's underlying member method code with example usage: obj.test_basic_submit(ray_start_stop) without return types