code: def test_model_with_heads_tagging_head_labels(self):
      model = BertAdapterModel(self.config)
      model.add_tagging_head(
          "test_head",
          num_labels=len(self.labels),
          id2label=self.label_map,
      )
      with TemporaryDirectory() as temp_dir:
          model.save_head(temp_dir, "test_head")
          model.load_head(temp_dir)
      # this is just loaded to test whether loading an adapter changes the label information
      model.add_adapter("sst-2")
  
      self.assertEqual(self.labels, model.get_labels())
      self.assertDictEqual(self.label_map, model.get_labels_dict())
  
file_path: adapters/tests/test_adapter_save_id2label.py
imports: import unittest
  from tempfile import TemporaryDirectory
  from typing import Dict
  import adapters
  from adapters import BertAdapterModel
  from transformers import BertConfig, BertForSequenceClassification
label_desc: Use image node_id 4 for calling the TestSaveLabel obj's underlying member method code with example usage: obj.test_model_with_heads_tagging_head_labels() without return types