code: def test_set_accepted_adapter_types_invalid_class(self):
      model = CommonModuleAdapter()
      original_num_params = model.num_weights
  
      assert not hasattr(model, "_accepted_adapter_types")
  
      # Explicitly set the accepted types to be the subclasses
      model.set_accepted_adapter_types(
          [
              get_classpath(
                  MockLinearAdapter1
              ),  # Pass string class path
              MockLinearAdapter2,  # Pass actual class itself
          ]
      )
  
      # Should throw error because the base class is now no longer in accepted list
      # and the get_types method does not fill in the default
      with pytest.raises(ValueError):
          model.add_adapter(name="adapter_0", cfg=get_adapter_cfg())
  
imports: import os
  import shutil
  import tempfile
  from typing import Tuple
  import pytest
  import torch
  from hydra.utils import instantiate
  from omegaconf import DictConfig, OmegaConf
  from nemo.collections.common.parts.adapter_modules import LinearAdapter
  from nemo.core import ModelPT, NeuralModule
  from nemo.core.classes.mixins import adapter_mixin_strategies, adapter_mixins
  from nemo.core.classes.mixins.adapter_mixins import AdapterModelPTMixin, AdapterModuleMixin
  from nemo.utils import logging, logging_mode
label_desc: Use image node_id 3 for calling the TestCommonAdapterModuleMixin obj's underlying member method code with example usage: obj.test_set_accepted_adapter_types_invalid_class() without return types