code: def test_load_old_non_linearity(self):
      model1, model2 = create_twin_models(self.model_class, self.config)
      config = SeqBnConfig(non_linearity="gelu")
      name = "dummy"
      model1.add_adapter(name, config=config)
      model1.set_active_adapters([name])
      with tempfile.TemporaryDirectory() as temp_dir:
          model1.save_adapter(temp_dir, name)
  
          with open(
              os.path.join(temp_dir, "adapter_config.json"), "r"
          ) as file:
              data = json.load(file)
              data["config"]["non_linearity"] = "gelu_orig"
              del data["version"]
          with open(
              os.path.join(temp_dir, "adapter_config.json"), "w"
          ) as file:
              json.dump(data, file)
  
          # also tests that set_active works
          model2.load_adapter(temp_dir, set_active=True)
  
      # check if adapter was correctly loaded
      self.assertTrue(name in model2.adapters_config)
      self.assertEqual(
          "gelu",
          model2.adapters_config.config_map[
              model2.adapters_config.adapters[name]
          ]["non_linearity"],
      )
  
file_path: adapters/tests/test_adapter_backward_compability.py
imports: import json
  import os
  import tempfile
  from adapters import SeqBnConfig, __version__
  from tests.methods import create_twin_models
  from transformers.testing_utils import require_torch
label_desc: Use image node_id 1 for calling the CompabilityTestMixin obj's underlying member method code with example usage: obj.test_load_old_non_linearity() without return types