code: def test_set_accepted_adapter_types_reset_types(self):
      model = CommonModuleAdapter()
      original_num_params = model.num_weights
  
      assert not hasattr(model, "_accepted_adapter_types")
  
      # Implicitly sets some types
      model.get_accepted_adapter_types()
  
      # Adding adapter will implicitly try to get accepted adapters, initializing the set
      assert hasattr(model, "_accepted_adapter_types")
  
      types = model.get_accepted_adapter_types()
      types = list(types)
      assert len(types) == 1
      assert types[0].__name__ == "LinearAdapter"
  
      # Reset type now
      model.set_accepted_adapter_types([])
  
      assert hasattr(model, "_accepted_adapter_types")
      types = model._accepted_adapter_types
      assert len(types) == 0
  
      # Since types are empty, get_types will set the default types
      model.add_adapter(name="adapter_0", cfg=get_adapter_cfg())
      new_num_params = model.num_weights
      assert new_num_params > original_num_params
  
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 2 for calling the TestCommonAdapterModuleMixin obj's underlying member method code with example usage: obj.test_set_accepted_adapter_types_reset_types() without return types