class_docstr: This handler handles connection and execution of the Pinecone statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Pinecone","statements","."]
docstr: Returns handler to index specified by `index_name`
docstr_tok: ["Returns","handler","to","index","specified","by","`","index_name","`"]
code: def _get_index_handle(self, index_name):
      """Returns handler to index specified by `index_name`"""
      index = pinecone.Index(index_name)
      try:
          index.describe_index_stats()
      except Exception:
          index = None
      return index
  
imports: from collections import OrderedDict
  from typing import List, Optional
  import pinecone
  import pandas
  import ast
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 3 for calling the PineconeHandler obj's underlying member method code with example usage: obj._get_index_handle(index_name) and returns: index