class_docstr: This handler handles connection and execution of the MongoDB statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","MongoDB","statements","."]
docstr: Get a list with of collection in database
docstr_tok: ["Get","a","list","with","of","collection","in","database"]
code: def get_tables(self) -> Response:
      """
      Get a list with of collection in database
      """
      con = self.connect()
      collections = con[self.database].list_collection_names()
      collections_ar = [[i] for i in collections]
      df = pd.DataFrame(collections_ar, columns=["table_name"])
  
      response = Response(RESPONSE_TYPE.TABLE, df)
  
      return response
  
imports: import re
  import time
  from collections import OrderedDict
  from bson import ObjectId
  import certifi
  import pandas
  import pymongo
  from pymongo import MongoClient
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from .utils.mongodb_render import MongodbRender
  from mindsdb.api.mongo.utilities.mongodb_query import MongoQuery
  from mindsdb.api.mongo.utilities.mongodb_parser import MongodbParser
label_desc: Use image node_id 10 for calling the MongoDBHandler obj's underlying member method code with example usage: obj.get_tables() and returns: response