code: def run_sql(self, sql):
      ret = self.command_executor.execute_command(
          parse_sql(sql, dialect="mindsdb")
      )
      assert ret.error_code is None
      if ret.data is not None:
          columns = [
              col.alias if col.alias is not None else col.name
              for col in ret.columns
          ]
          return pd.DataFrame(ret.data, columns=columns)
  
file_path: mindsdb/tests/handler_tests/test_sap_erp_handler.py
imports: import importlib
  import os
  import pandas
  import pytest
  from mindsdb_sql import parse_sql
  from ..unit.executor_test_base import BaseExecutorTest
label_desc: Use image node_id 1 for calling the TestSAPERPHandler obj's underlying member method code with example usage: obj.run_sql(sql) and returns: pd