class_docstr: This handler handles connection and execution of the S3 statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","S3","statements","."]
docstr: Return list of entities that will be accessible as tables.
  Returns:
      HandlerResponse
docstr_tok: ["Return","list","of","entities","that","will","be","accessible","as","tables",".","Returns",":","HandlerResponse"]
code: def get_tables(self) -> StatusResponse:
      """
      Return list of entities that will be accessible as tables.
      Returns:
          HandlerResponse
      """
  
      connection = self.connect()
      objects = [
          obj["Key"]
          for obj in connection.list_objects(
              Bucket=self.connection_data["bucket"]
          )["Contents"]
      ]
  
      response = Response(
          RESPONSE_TYPE.TABLE,
          data_frame=pd.DataFrame(objects, columns=["table_name"]),
      )
  
      return response
  
imports: from typing import Optional
  from collections import OrderedDict
  import pandas
  import boto3
  import io
  import ast
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 8 for calling the S3Handler obj's underlying member method code with example usage: obj.get_tables() and returns: response