def _create_client(self, region_name):
        """Creates an Amazon S3 client for the given region name"""
        if region_name not in self._client_cache:
            client = self._session.create_client('s3', region_name)
            # Remove the CLI error event that prevents exceptions.
            remove_cli_error_event(client)
            self._client_cache[region_name] = client
        return self._client_cache[region_name]
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py/S3ClientProvider._create_client/original