code: def tie_weights(self):
      self.lm_head.weight = (
          self.transformer.embeddings.word_embeddings.weight
      )
  
imports: import math
  from functools import partial
  from collections import namedtuple
  from collections.abc import Sequence
  import torch
  import torch.nn
  import torch.nn.functional
  from transformers.models.gpt2.configuration_gpt2 import GPT2Config
  from src.models.modules.mha import MHA
  from src.models.modules.mlp import Mlp, FusedDenseGeluDense
  from src.models.modules.block import Block
  from src.models.modules.embedding import GPT2Embeddings
label_desc: Use image node_id 2 for calling the GPT2LMHeadModel obj's underlying member method code with example usage: obj.tie_weights() without return types