code: def s3_base(monkeypatch_module: Any) -> Iterator[str]:
      monkeypatch_module.setenv("AWS_ACCESS_KEY_ID", "accesskey")
      monkeypatch_module.setenv("AWS_SECRET_ACCESS_KEY", "secretkey")
      monkeypatch_module.setenv("AWS_DEFAULT_REGION", "us-east-1")
  
      host = "127.0.0.1"
      port = 5000
      moto_server = ThreadedMotoServer(host, port)
  
      moto_server.start()
      print("server up")
      yield f"http://{host}:{port}"
      print("moto done")
      moto_server.stop()
  
file_path: polars/py-polars/tests/unit/io/cloud/test_aws.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Callable, Iterator
  import boto3
  import pytest
  from moto.server import ThreadedMotoServer
  import polars
label_desc: Use image node_id 2 for calling a global function with example usage: s3_base(monkeypatch_module) without return types