class_docstr: TODO  (@adithyare)
class_docstr_tok: ["TODO","(","@","adithyare",")"]
code: def _add_adapters_to_component(
      self, component, component_cfg, adapter_name_keys
  ):
      for _, module in component.named_modules():
          if isinstance(module, adapter_mixins.AdapterModuleMixin):
              for adapter_key in adapter_name_keys:
                  adapter_cfg = self._get_adapter_cfg(
                      component_cfg, adapter_key
                  )
                  if (
                      model_utils.import_class_by_path(
                          adapter_cfg._target_
                      )
                      in module.get_accepted_adapter_types()
                  ):
                      module.add_adapter(
                          name=adapter_key, cfg=adapter_cfg
                      )
                      print(f"in adding {adapter_key}")
  
imports: import itertools
  from typing import Any
  import torch
  from omegaconf.dictconfig import DictConfig
  from omegaconf.omegaconf import open_dict
  from pytorch_lightning.trainer.trainer import Trainer
  from nemo.collections.common.parts.adapter_modules import LinearAdapterConfig
  from nemo.collections.nlp.models.language_modeling.megatron_t5_model import MegatronT5Model
  from nemo.collections.nlp.models.language_modeling.megatron_t5_prompt_learning_model import MegatronT5PromptLearningModel
  from nemo.collections.nlp.models.language_modeling.megatron_t5_sft_model import MegatronT5SFTModel
  from nemo.collections.nlp.modules.common import VirtualPromptStyle
  from nemo.collections.nlp.modules.common.megatron.adapters.parallel_adapters import AdapterName, InfusedAdapterConfig, LoraKQVAdapterConfig, LoraKVAdapterConfig, LoraQAdapterConfig, MLPInfusedAdapterConfig, ParallelLinearAdapterConfig
  from nemo.collections.nlp.parts.utils_funcs import get_last_rank
  from nemo.core.classes.mixins import adapter_mixins
  from nemo.utils import logging, model_utils
label_desc: Use image node_id 2 for calling the MegatronT5LoraModel obj's underlying member method code with example usage: obj._add_adapters_to_component(component, component_cfg, adapter_name_keys) without return types