class_docstr: A suite of unit tests for ship_logs.py
  
  Yeah, it's a hack that these tests live in e2e tests.  But since they test python code it's
  just easier this way.
code: def test_honor_http_proxy(self) -> None:
      # Use a subprocess to control the environment.
      with ShipLogServer() as srv:
          env = {
              "DET_MASTER": "http://notreal.faketld",
              "DET_SESSION_TOKEN": "token",
              "DET_TASK_LOGGING_METADATA": "{}",
              "http_proxy": srv.master_url(),
          }
          cmd = mkcmd("print('hello world')")
          fullcmd = [sys.executable, "-u", ship_logs.__file__] + cmd
          subprocess.run(fullcmd, env=env, check=True)
          assert srv.logs == ["hello world\n"], srv.logs
  
imports: import io
  import json
  import logging
  import os
  import shutil
  import signal
  import socket
  import ssl
  import subprocess
  import sys
  import tempfile
  import textwrap
  import threading
  import time
  from typing import Any, List, Optional
  import pytest
label_desc: Use image node_id 12 for calling the TestShipLogs obj's underlying member method code with example usage: obj.test_honor_http_proxy() without return types