class_docstr: Mean squared, absolute error loss.
  Calculates both losses and returns a dict with string keys.
class_docstr_tok: ["Mean","squared",",","absolute","error","loss",".","Calculates","both","losses","and","returns","a","dict","with","string","keys","."]
code: def __init__(self):
      super().__init__()
  
imports: import collections
  import unittest
  from unittest.mock import MagicMock
  import mmf.modules.losses
  import torch
  import torch.nn
  import torch.nn.functional
  from mmf.common.registry import registry
  from mmf.common.sample import SampleList
label_desc: Use image node_id 1 to create a new TestMSEAndMAELoss object from inherited base classes: nn with example: obj = TestMSEAndMAELoss()