code: def test_upload_to_s3_client_error(client):
      config = app.config.copy()
      app.config["CSV_TO_HIVE_UPLOAD_S3_BUCKET"] = "bucket"
      from botocore.exceptions import ClientError
  
      client.return_value.upload_file.side_effect = ClientError(
          {"Error": {}}, "operation_name"
      )
  
      with app.app_context():
          with pytest.raises(ClientError):
              upload_to_s3("filename", "prefix", Table("table"))
  
      app.config = config
  
imports: from unittest import mock
  import pytest
  import pandas
  from sqlalchemy.sql import select
  from superset.db_engine_specs.hive import HiveEngineSpec, upload_to_s3
  from superset.exceptions import SupersetException
  from superset.sql_parse import Table, ParsedQuery
  from tests.integration_tests.test_app import app
label_desc: Use image node_id 18 for calling a global function with example usage: test_upload_to_s3_client_error(client) without return types