class_docstr: Subclass the DefaultModule, adding adapter module support
class_docstr_tok: ["Subclass","the","DefaultModule",",","adding","adapter","module","support"]
code: def forward(self, x):
      x = super().forward(x)
  
      if self.is_adapter_available():
          # For testing purposes, cache the adapter names
          self._adapter_names = self.get_enabled_adapters()
          # call forward over model adapters, summing them up
          x = self.forward_enabled_adapters(x)
  
      return x
  
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 1 for calling the CommonModuleAdapter obj's underlying member method code with example usage: obj.forward(x) and returns: x