code: def forward(self, inputs):
      embeddings = self.encoder(inputs.view(-1, *inputs.shape[2:]))
      return embeddings.view(*inputs.shape[:2], -1)
  
imports: import torch.nn
label_desc: Use image node_id 2 for calling the MatchingNetwork obj's underlying member method code with example usage: obj.forward(inputs) and returns: embeddings