class_docstr: Base class to calculate hidden state loss.
  Returned dict includes a loss value and additional outputs.
class_docstr_tok: ["Base","class","to","calculate","hidden","state","loss",".","Returned","dict","includes","a","loss","value","and","additional","outputs","."]
code: def __str__(self):
      return super().__str__() + f"(name={self.name})"
  
imports: import math
  import torch
label_desc: Use image node_id 2 for calling the MegatronBaseHiddenLoss obj's underlying member method code with example usage: obj.__str__() and returns: unknown