code: def clear_bucket(s3_end_point, s3_bucket_name):
      """
      Clear the bucket before starting the test.
      """
      access_key = os.environ.get("AWS_ACCESS_KEY_ID")
      secret_access_key = os.environ.get("AWS_SECRET_ACCESS_KEY")
      minio_client = Minio(
          s3_end_point,
          access_key=access_key,
          secret_key=secret_access_key,
      )
      try:
          for obj in minio_client.list_objects_v2(
              s3_bucket_name, recursive=True
          ):
              minio_client.remove_object(
                  s3_bucket_name, obj.object_name
              )
      except Exception:
          pass
  
file_path: coach/rl_coach/tests/test_dist_coach.py
imports: from configparser import ConfigParser
  import pytest
  import argparse
  import os
  from rl_coach.coach import CoachLauncher
  import sys
  from minio import Minio
label_desc: Use image node_id 3 for calling a global function with example usage: clear_bucket(s3_end_point, s3_bucket_name) without return types