code: def __str__(self):
      lines = [self.__class__.__name__ + ":"]
      for key, val in sorted(self._asdict().items()):
          lines += f"{key}: {val}".split("\n")
      return "\n    ".join(lines)
  
imports: from collections import OrderedDict
  from enum import Enum
  from typing import Dict, List, Union
label_desc: Use image node_id 5 for calling the ConfigBase obj's underlying member method code with example usage: obj.__str__() and returns: str