code: def monkeypatch_module() -> Any:
      """Allow module-scoped monkeypatching."""
      with pytest.MonkeyPatch.context() as mp:
          yield mp
  
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 1 for calling a global function with example usage: monkeypatch_module() without return types