code: def test_plugin_s_overwrite():
      runner = CliRunner()
      plugins_dir = str(pathlib.Path(__file__).parent / "plugins")
  
      result = runner.invoke(
          cli,
          [
              "--plugins-dir",
              plugins_dir,
              "--get",
              "/_memory.json?sql=select+prepare_connection_args()",
          ],
      )
      assert result.exit_code == 0, result.output
      assert (
          json.loads(result.output)
          .get("rows")[0]
          .get("prepare_connection_args()")
          == 'database=_memory, datasette.plugin_config("name-of-plugin")=None'
      )
  
      result = runner.invoke(
          cli,
          [
              "--plugins-dir",
              plugins_dir,
              "--get",
              "/_memory.json?sql=select+prepare_connection_args()",
              "-s",
              "plugins.name-of-plugin",
              "OVERRIDE",
          ],
      )
      assert result.exit_code == 0, result.output
      assert (
          json.loads(result.output)
          .get("rows")[0]
          .get("prepare_connection_args()")
          == 'database=_memory, datasette.plugin_config("name-of-plugin")=OVERRIDE'
      )
  
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 16 for calling a global function with example usage: test_plugin_s_overwrite() without return types