code: def test_invalid_file_format(self):
      with pytest.raises(AirflowException):
          SqlToS3Operator(
              query="query",
              s3_bucket="bucket",
              s3_key="key",
              sql_conn_id="mysql_conn_id",
              task_id="task_id",
              file_format="invalid_format",
              dag=None,
          )
  
file_path: airflow/tests/providers/amazon/aws/transfers/test_sql_to_s3.py
imports: from __future__ import annotations
  from tempfile import NamedTemporaryFile
  from unittest import mock
  import pandas
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.amazon.aws.transfers.sql_to_s3 import SqlToS3Operator
label_desc: Use image node_id 5 for calling the TestSqlToS3Operator obj's underlying member method code with example usage: obj.test_invalid_file_format() without return types