code: def test_apply_post_process_without_result_format():
      """
      A query without result_format should raise an exception
      """
      result = {"queries": [{"result_format": "foo"}]}
      form_data = {"viz_type": "pivot_table_v2"}
  
      with pytest.raises(Exception) as ex:
          apply_post_process(result, form_data)
  
      assert ex.match("Result format foo not supported") == True
  
imports: import pandas
  import pytest
  from flask_babel import lazy_gettext
  from numpy import True_
  from sqlalchemy.orm.session import Session
  from superset.charts.post_processing import apply_post_process, pivot_df, table
  from superset.common.chart_data import ChartDataResultFormat
  from superset.utils.core import GenericDataType
label_desc: Use image node_id 9 for calling a global function with example usage: test_apply_post_process_without_result_format() without return types