code: def __str__(self):
      display = ""
      for key, val in self.to_dict().items():
          display += "\n" + key.replace("_", " ").capitalize() + ": "
          display += "\n\t" + str(val).replace("\n", "\n\t") + "\n"
      if not display:
          display = super(ModelCardInfo, self).__str__()
      return display.strip()
  
imports: import os
  import logging
  from dataclasses import dataclass
  from typing import Optional, Union, Dict, Any, Callable
  from allennlp.common.from_params import FromParams
  from allennlp.models import Model
  from allennlp.common.checks import ConfigurationError
label_desc: Use image node_id 2 for calling the ModelCardInfo obj's underlying member method code with example usage: obj.__str__() and returns: display