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_only_standard_library_dependences(self) -> None:
      cmd = mkcmd(
          """
              # ONLY STANDARD LIBRARY IMPORTS ARE ALLOWED
              import datetime
              import io
              import json
              import logging
              import os
              import queue
              import re
              import signal
              import ssl
              import subprocess
              import sys
              import threading
              import time
              import traceback
              import typing
              import urllib.request
              # END OF STANDARD LIBRARY IMPORTS
  
              # Now the only new module that `import ship_logs` can add is ship_logs itself.
              allowed_modules = set((*sys.modules, "ship_logs"))
  
              sys.path = ["%s"] + sys.path
              import ship_logs
  
              new_modules = set(sys.modules).difference(allowed_modules)
  
              for name in new_modules:
                  print("possible non-standard-library dependency detected:", name)
  
              exit(1 if new_modules else 0)
              """
          % (static_srv)
      )
      p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
      assert p.stdout
      errmsgs = p.stdout.read().decode("utf8")
      assert p.wait() == 0, "\n" + errmsgs
  
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 10 for calling the TestShipLogs obj's underlying member method code with example usage: obj.test_only_standard_library_dependences() without return types