code: def test_run_script_in_docker() -> None:
      def _mock_check_output(input: List[str]) -> None:
          input_str = " ".join(input)
          assert "/bin/bash -iecuo pipefail -- run command" in input_str
  
      with mock.patch(
          "subprocess.check_output", side_effect=_mock_check_output
      ), mock.patch(
          "ci.ray_ci.linux_tester_container.LinuxTesterContainer.install_ray",
          return_value=None,
      ):
          container = LinuxTesterContainer("team")
          container.run_script_with_output(["run command"])
  
imports: import json
  import os
  import platform
  import sys
  import pytest
  import tempfile
  from unittest import mock
  from typing import List, Optional
  from ci.ray_ci.linux_tester_container import LinuxTesterContainer
  from ci.ray_ci.utils import chunk_into_n
  from ci.ray_ci.container import _DOCKER_ECR_REPO, _RAYCI_BUILD_ID
label_desc: Use image node_id 3 for calling a global function with example usage: test_run_script_in_docker() without return types