code: def mkcmd(script: str) -> List[str]:
      # -u: don't buffer stdout/stderr.
      return [sys.executable, "-u", "-c", textwrap.dedent(script)]
  
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 1 for calling a global function with example usage: mkcmd(script) and returns: list