docstr: Check if connected
docstr_tok: ["Check","if","connected"]
code: def check_connection(self) -> StatusResponse:
      """Check if connected"""
      response = StatusResponse(False)
      if NPM.is_connected():
          response.success = True
      else:
          response.success = False
      self.is_connected = True
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/npm_handler/npm_handler.py
imports: from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.npm_handler.api import NPM
  from mindsdb.integrations.handlers.npm_handler.npm_tables import NPMMetadataTable, NPMMaintainersTable, NPMKeywordsTable, NPMDependenciesTable, NPMDevDependenciesTable, NPMOptionalDependenciesTable, NPMGithubStatsTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
label_desc: Use image node_id 2 for calling the NPMHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response