code: def tie_weights(self, module: Optional[torch.nn.Module] = None):
      self.cls.predictions.decoder.weight = module.weight
  
file_path: mmf/mmf/models/transformers/heads/mlm.py
imports: import warnings
  from dataclasses import dataclass
  from typing import Dict, List, Optional
  import torch
  from mmf.common.registry import registry
  from mmf.models.transformers.base import BaseTransformerHead
label_desc: Use image node_id 2 for calling the MLM obj's underlying member method code with example usage: obj.tie_weights(module) without return types