code: def _prepare_adapter_config(self, peft_config, model_config):
      if peft_config.target_modules is None:
          if (
              model_config["model_type"]
              not in TRANSFORMERS_MODELS_TO_LORA_TARGET_MODULES_MAPPING
          ):
              raise ValueError(
                  "Please specify `target_modules` in `peft_config`"
              )
          peft_config.target_modules = set(
              TRANSFORMERS_MODELS_TO_LORA_TARGET_MODULES_MAPPING[
                  model_config["model_type"]
              ]
          )
      return peft_config
  
imports: from contextlib import contextmanager
  from dataclasses import asdict
  from enum import Enum
  from typing import Any
  import torch
  from torch import nn
  from peft.tuners.tuners_utils import BaseTuner, BaseTunerLayer, check_target_module_exists
  from peft.utils import TRANSFORMERS_MODELS_TO_LORA_TARGET_MODULES_MAPPING, ModulesToSaveWrapper
  from .config import PolyConfig
  from .layer import Linear, PolyLayer
label_desc: Use image node_id 13 for calling the PolyModel obj's underlying member method code with example usage: obj._prepare_adapter_config(peft_config, model_config) and returns: peft_config