code: def replace_arguments(config, world_size):
      return {
          # 1. reduce hidden size
          "attention.attn.all_head_size": config.hidden_size
          // world_size,
          # 2. reduce number of heads
          "attention.attn.num_attention_heads": config.num_attention_heads
          // world_size,
      }
  
file_path: parallelformers/parallelformers/policies/mpnet.py
imports: from transformers.models.mpnet.modeling_mpnet import MPNetEncoder, MPNetLayer
  from parallelformers.policies.base import Layer, Policy
  from parallelformers.utils import AllReduceLinear
label_desc: Use image node_id 1 for calling the MPNetLayerPolicy obj's underlying member method code with example usage: obj.replace_arguments(config, world_size) and returns: dict