code: def test_load_task_adapter_from_hub_with_leave_out(self):
      model = AutoModel.from_pretrained("bert-base-uncased")
      adapters.init(model)
  
      loading_info = {}
      adapter_name = model.load_adapter(
          "sts/mrpc@ukp",
          config="pfeiffer",
          loading_info=loading_info,
          leave_out=[11],
      )
  
      self.assertEqual(0, len(loading_info["missing_keys"]))
      # self.assertEqual(0, len(loading_info["unexpected_keys"]))
      self.assertIn(adapter_name, model.adapters_config.adapters)
  
      # check if leave out was applied to config
      self.assertEqual(
          [11], model.adapters_config.get(adapter_name).leave_out
      )
  
      # layer 11 should be removed while others should still exist
      self.assertIn(
          adapter_name,
          model.base_model.encoder.layer[10].output.adapters,
      )
      self.assertNotIn(
          adapter_name,
          model.base_model.encoder.layer[11].output.adapters,
      )
  
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 4 for calling the AdapterHubTest obj's underlying member method code with example usage: obj.test_load_task_adapter_from_hub_with_leave_out() without return types