code: def forward(self, x, t):
      h = self.block1(x)
      h += self.mlp(t)[..., None, None]
      h = self.block2(h)
      return h + self.res_conv(x)
  
imports: import math
  import kornia
  import torch
  import torch.nn.functional
  from einops import rearrange
  from torch import nn
label_desc: Use image node_id 2 for calling the ResnetBlock obj's underlying member method code with example usage: obj.forward(x, t) and returns: unknown