code: def scale_lora_layers(model, weight):
      """
      Adjust the weightage given to the LoRA layers of the model.
  
      Args:
          model (`torch.nn.Module`):
              The model to scale.
          weight (`float`):
              The weight to be given to the LoRA layers.
      """
      from peft.tuners.tuners_utils import BaseTunerLayer
  
      for module in model.modules():
          if isinstance(module, BaseTunerLayer):
              module.scale_layer(weight)
  
file_path: diffusers/src/diffusers/utils/peft_utils.py
imports: import collections
  import importlib
  from typing import Optional
  from packaging import version
  from .import_utils import is_peft_available, is_torch_available
label_desc: Use image node_id 2 for calling a global function with example usage: scale_lora_layers(model, weight) without return types