code: def test_find_in_index(self):
      for sample in self.search_samples:
          with self.subTest(sample=sample):
              config = (
                  ADAPTER_CONFIG_MAP[sample[1]] if sample[1] else None
              )
              found_entry = find_in_index(
                  sample[0], None, config, index_file=SAMPLE_INDEX
              )
              self.assertEqual(sample[2], found_entry)
  
file_path: adapters/tests/test_adapter_hub.py
imports: import os
  import unittest
  import numpy
  import adapters
  from adapters import ADAPTER_CONFIG_MAP, AdapterConfig, BertAdapterModel, get_adapter_config_hash
  from adapters.trainer import AdapterTrainer
  from adapters.utils import find_in_index
  from transformers import AutoModel, AutoTokenizer, BertForSequenceClassification, GlueDataset, GlueDataTrainingArguments, TrainingArguments, glue_compute_metrics
  from transformers.testing_utils import require_torch, torch_device
  from .test_adapter import ids_tensor
label_desc: Use image node_id 1 for calling the AdapterHubTest obj's underlying member method code with example usage: obj.test_find_in_index() without return types