code: def filter_columns(
      self, result: pd.DataFrame, query: ast.Select = None
  ):
      columns = []
      if query is not None:
          for target in query.targets:
              if isinstance(target, ast.Star):
                  columns = self.get_columns()
                  break
              elif isinstance(target, ast.Identifier):
                  columns.append(target.value)
      if len(columns) > 0:
          result = result[columns]
  
imports: import pandas
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.utilities.sql_utils import extract_comparison_conditions
label_desc: Use image node_id 4 for calling the AccountsTable obj's underlying member method code with example usage: obj.filter_columns(result, query) without return types