class_docstr: TODO  (@adithyare)
class_docstr_tok: ["TODO","(","@","adithyare",")"]
code: def _get_component_cfg(self, component_name, frozen_model_cfg, cfg):
      if component_name in frozen_model_cfg:
          component_cfg = frozen_model_cfg.get(component_name)
          with open_dict(component_cfg):
              component_cfg.tensor_model_parallel_size = (
                  frozen_model_cfg.tensor_model_parallel_size
              )
              component_cfg.adapter_tuning = cfg.adapter_tuning
      else:
          component_cfg = frozen_model_cfg
          with open_dict(component_cfg):
              component_cfg.adapter_tuning = cfg.adapter_tuning
      return component_cfg
  
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 3 for calling the MegatronT5AdapterLearningModel obj's underlying member method code with example usage: obj._get_component_cfg(component_name, frozen_model_cfg, cfg) and returns: component_cfg