code: def test_add_elasticsearch_index(self):
      from elasticsearch import Elasticsearch
  
      dset: Dataset = self._create_dummy_dataset()
      with patch(
          "elasticsearch.Elasticsearch.search"
      ) as mocked_search, patch(
          "elasticsearch.client.IndicesClient.create"
      ) as mocked_index_create, patch(
          "elasticsearch.helpers.streaming_bulk"
      ) as mocked_bulk:
          mocked_index_create.return_value = {"acknowledged": True}
          mocked_bulk.return_value([(True, None)] * 30)
          mocked_search.return_value = {
              "hits": {"hits": [{"_score": 1, "_id": 29}]}
          }
          es_client = Elasticsearch()
  
          dset.add_elasticsearch_index("filename", es_client=es_client)
          scores, examples = dset.get_nearest_examples(
              "filename", "my_name-train_29"
          )
          self.assertEqual(examples["filename"][0], "my_name-train_29")
  
imports: import os
  import tempfile
  from functools import partial
  from unittest import TestCase
  from unittest.mock import patch
  import numpy
  import pytest
  from datasets.arrow_dataset import Dataset
  from datasets.search import ElasticSearchIndex, FaissIndex, MissingIndex
  from .utils import require_elasticsearch, require_faiss
label_desc: Use image node_id 6 for calling the IndexableDatasetTest obj's underlying member method code with example usage: obj.test_add_elasticsearch_index() without return types