code: def forward(self, inputs, targets):
      losses = []
      for x, y in zip(inputs, targets):
          hidden_dim = self.linear(x)
          loss = self.cross_entropy_loss(hidden_dim, y)
          losses.append(loss)
      return tuple(losses)
  
imports: import torch
label_desc: Use image node_id 2 for calling the MultiOutputModel obj's underlying member method code with example usage: obj.forward(inputs, targets) and returns: tuple