code: def run_sql(self, sql, throw_error=True, database="mindsdb"):
      self.command_executor.session.database = database
      ret = self.command_executor.execute_command(
          parse_sql(sql, dialect="mindsdb")
      )
      if throw_error:
          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)
  
imports: from unittest.mock import patch
  import datetime
  import time
  import pytest
  import pandas
  from mindsdb_sql import parse_sql
  from .executor_test_base import BaseExecutorDummyML
label_desc: Use image node_id 2 for calling the TestProjectStructure obj's underlying member method code with example usage: obj.run_sql(sql, throw_error, database) and returns: pd