docstr: The connect method sets up the connection required by the handler.
  In order establish a connection with Mendeley API one needs the client id and client secret that are
  created after registering the application at https://dev.mendeley.com/myapps.html . More information on the matter
  can be found at https://dev.mendeley.com/reference/topics/application_registration.html .
  In order to have access to Mendeley data we use "session".
  
  Returns:
  HandlerStatusResponse 
docstr_tok: ["The","connect","method","sets","up","the","connection","required","by","the","handler",".","In","order","establish","a","connection","with","Mendeley","API","one","needs","the","client","id","and","client","secret","that","are","created","after","registering","the","application","at","https",":","\/\/dev.mendeley.com\/myapps.html",".","More","information","on","the","matter","can","be","found","at","https",":","\/\/dev.mendeley.com\/reference\/topics\/application_registration.html",".","In","order","to","have","access","to","Mendeley","data","we","use","``","session","''",".","Returns",":","HandlerStatusResponse"]
code: def connect(self) -> MendeleySession:
      """The connect method sets up the connection required by the handler.
      In order establish a connection with Mendeley API one needs the client id and client secret that are
      created after registering the application at https://dev.mendeley.com/myapps.html . More information on the matter
      can be found at https://dev.mendeley.com/reference/topics/application_registration.html .
      In order to have access to Mendeley data we use "session".
  
      Returns:
      HandlerStatusResponse"""
  
      if self.is_connected == True:
          return self.session
  
      mendeley = Mendeley(self.client_id, self.client_secret)
      auth = mendeley.start_client_credentials_flow()
      self.session = auth.authenticate()
  
      self.is_connected = True
      return self.session
  
file_path: mindsdb/mindsdb/integrations/handlers/mendeley_handler/mendeley_handler.py
imports: from mindsdb_sql import parse_sql
  import pandas
  from mendeley import Mendeley
  from mindsdb.integrations.libs.api_handler import APIHandler, FuncParser
  from mendeley.session import MendeleySession
  from mindsdb.integrations.handlers.mendeley_handler.mendeley_tables import CatalogSearchTable
  from mindsdb.utilities import log
  from typing import Dict
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
label_desc: Use image node_id 2 for calling the MendeleyHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self