code: def _create_new_module(poly_config, adapter_name, target, **kwargs):
      if isinstance(target, BaseTunerLayer):
          target_base_layer = target.get_base_layer()
      else:
          target_base_layer = target
  
      if isinstance(target_base_layer, torch.nn.Linear):
          return Linear(target, adapter_name, poly_config, **kwargs)
      else:
          raise ValueError(
              f"Target module {target} is not supported. Currently, only the following modules are supported: "
              "`torch.nn.Linear`."
          )
  
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 6 for calling the PolyModel obj's underlying member method code with example usage: obj._create_new_module(poly_config, adapter_name, target) and returns: Linear