code: def disable_aws_metadata(monkeypatch):
      """Stop the AWS SDK from trying to contact the EC2 metadata server.
  
      Otherwise, this causes a 5 second delay in tests that exercise the
      S3 filesystem.
      """
      monkeypatch.setenv("AWS_EC2_METADATA_DISABLED", "true")
  
imports: import functools
  import os
  import pathlib
  import subprocess
  import sys
  import time
  import urllib.request
  import pytest
  from pytest_lazyfixture import lazy_fixture
  import hypothesis
  from ..conftest import groups, defaults
  from pyarrow import set_timezone_db_path
  from pyarrow.util import find_free_port
label_desc: Use image node_id 6 for calling a global function with example usage: disable_aws_metadata(monkeypatch) without return types