code: def test_bootstrap_req_txt_error():
      with patch("subprocess.Popen") as popen:
          popen.return_value.wait.return_value = 1
  
          with pytest.raises(RuntimeEnvironmentError):
              RuntimeEnvironmentManager().bootstrap(
                  TEST_REQUIREMENTS_TXT, CLIENT_PYTHON_VERSION
              )
  
          python_exe = sys.executable
          call_args = popen.call_args[0][0]
          assert call_args is not None
  
          expected_cmd = "{} -m pip install -r {}".format(
              python_exe, TEST_REQUIREMENTS_TXT
          )
          assert call_args == expected_cmd
  
imports: from __future__ import absolute_import
  import subprocess
  import pytest
  from mock import patch, Mock
  import sys
  import shlex
  import os
  from mock.mock import MagicMock
  from sagemaker.remote_function.runtime_environment.runtime_environment_manager import RuntimeEnvironmentManager, RuntimeEnvironmentError
label_desc: Use image node_id 12 for calling a global function with example usage: test_bootstrap_req_txt_error() without return types