class_docstr: Hubspot Deals table.
code: def get_deals(self, **kwargs) -> List[Dict]:
      hubspot = self.handler.connect()
      deals = hubspot.crm.deals.get_all(**kwargs)
      deals_dict = [
          {
              "id": deal.id,
              "dealname": deal.properties["dealname"],
              "amount": deal.properties.get("amount", None),
              "pipeline": deal.properties.get("pipeline", None),
              "closedate": deal.properties.get("closedate", None),
              "dealstage": deal.properties.get("dealstage", None),
              "hubspot_owner_id": deal.properties.get(
                  "hubspot_owner_id", None
              ),
              "createdate": deal.properties["createdate"],
              "hs_lastmodifieddate": deal.properties[
                  "hs_lastmodifieddate"
              ],
          }
          for deal in deals
      ]
      return deals_dict
  
imports: import pandas
  from hubspot.crm.objects import SimplePublicObjectId, SimplePublicObjectBatchInput, SimplePublicObjectInputForCreate, BatchInputSimplePublicObjectId, BatchInputSimplePublicObjectBatchInput, BatchInputSimplePublicObjectInputForCreate
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.handlers.utilities.query_utilities import INSERTQueryParser, SELECTQueryParser, UPDATEQueryParser, DELETEQueryParser, SELECTQueryExecutor, UPDATEQueryExecutor, DELETEQueryExecutor
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.utilities import log
label_desc: Use image node_id 6 for calling the DealsTable obj's underlying member method code with example usage: obj.get_deals() and returns: deals_dict