code: def copy_layer(hf_layer, pt_weights, prefix):
      # copy layer norms
      copy_linear(hf_layer.layer_norm1, pt_weights, f"{prefix}.ln_1")
      copy_linear(hf_layer.layer_norm2, pt_weights, f"{prefix}.ln_2")
  
      # copy MLP
      copy_mlp(hf_layer.mlp, pt_weights, f"{prefix}.mlp")
  
      # copy attn
      copy_attn_layer(hf_layer.self_attn, pt_weights, f"{prefix}.attn")
  
file_path: transformers/src/transformers/models/chinese_clip/convert_chinese_clip_original_pytorch_to_hf.py
imports: import argparse
  import torch
  from transformers import ChineseCLIPConfig, ChineseCLIPModel
label_desc: Use image node_id 4 for calling a global function with example usage: copy_layer(hf_layer, pt_weights, prefix) without return types