class_docstr: Provides base test running methods for testing an adapter method implementation.
class_docstr_tok: ["Provides","base","test","running","methods","for","testing","an","adapter","method","implementation","."]
code: def run_get_test(self, model, adapter_config, num_expected_modules):
      model.eval()
  
      model.add_adapter("first", config=adapter_config)
      model.set_active_adapters(["first"])
  
      # adapter is correctly added to config
      name = "first"
      self.assert_adapter_available(model, name)
  
      adapter = model.get_adapter("first")
  
      self.assertNotEqual(len(adapter), 0)
      num_found_modules = sum(
          [len(layer_modules) for layer_modules in adapter.values()]
      )
      self.assertEqual(num_expected_modules, num_found_modules)
  
      model.delete_adapter("first")
  
imports: import copy
  import os
  import tempfile
  import torch
  import adapters
  from adapters import ADAPTER_MODEL_MAPPING, AdapterSetup, AdapterTrainer, AutoAdapterModel
  from adapters.heads import CausalLMHead
  from adapters.utils import WEIGHTS_NAME
  from adapters.wrappers import load_model
  from transformers import TrainingArguments
  from transformers.testing_utils import require_torch, torch_device
label_desc: Use image node_id 6 for calling the AdapterMethodBaseTestMixin obj's underlying member method code with example usage: obj.run_get_test(model, adapter_config, num_expected_modules) without return types