docstr: Connect to the Elasticsearch instance
docstr_tok: ["Connect","to","the","Elasticsearch","instance"]
code: def connect(self):
      """
      Connect to the Elasticsearch instance
      """
      self.es = Elasticsearch(f"http://{self.host}:{self.port}")
      if not self.es.ping():
          raise ConnectionError(
              f"Could not connect to Elasticsearch {self.host}:{self.port}"
          )
  
imports: from elasticsearch import Elasticsearch, helpers
label_desc: Use image node_id 2 for calling the ElasticConnector obj's underlying member method code with example usage: obj.connect() without return types