code: def test_get_pandas_df(impala_hook_fixture):
      statement = "SQL"
      column = "col"
      result_sets = [("row1",), ("row2",)]
      impala_hook_fixture.get_conn.return_value.cursor.return_value.description = [
          (column,)
      ]
      impala_hook_fixture.get_conn.return_value.cursor.return_value.fetchall.return_value = (
          result_sets
      )
      df = impala_hook_fixture.get_pandas_df(statement)
  
      assert column == df.columns[0]
  
      assert result_sets[0][0] == df.values.tolist()[0][0]
      assert result_sets[1][0] == df.values.tolist()[1][0]
  
      impala_hook_fixture.get_conn.return_value.cursor.return_value.execute.assert_called_once_with(
          statement
      )
  
file_path: airflow/tests/providers/apache/impala/hooks/test_impala.py
imports: from __future__ import annotations
  from unittest.mock import MagicMock, patch
  import pytest
  from airflow.models import Connection
  from airflow.providers.apache.impala.hooks.impala import ImpalaHook
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_pandas_df(impala_hook_fixture) without return types