code: def test_install_requirements(run_module, tmpdir):
      path = tmpdir.join("requirements.txt")
      path.write("datasette-mock-plugin\ndatasette-plugin-2")
      runner = CliRunner()
      runner.invoke(cli, ["install", "-r", str(path)])
      run_module.assert_called_once_with("pip", run_name="__main__")
      assert sys.argv == ["pip", "install", "-r", str(path)]
  
imports: from .fixtures import app_client, make_app_client, TestClient, EXPECTED_PLUGINS
  import asyncio
  from datasette.app import SETTINGS
  from datasette.plugins import DEFAULT_PLUGINS
  from datasette.cli import cli, serve
  from datasette.version import __version__
  from datasette.utils import tilde_encode
  from datasette.utils.sqlite import sqlite3
  from click.testing import CliRunner
  import io
  import json
  import pathlib
  import pytest
  import sys
  import textwrap
  from unittest import mock
  import urllib
label_desc: Use image node_id 10 for calling a global function with example usage: test_install_requirements(run_module, tmpdir) without return types