class_docstr: Base class for optimizer
  
  Args:
      opts: Command-line arguments
class_docstr_tok: ["Base","class","for","optimizer","Args",":","opts",":","Command-line","arguments"]
code: def __repr__(self) -> str:
      group_dict = dict()
      for i, group in enumerate(self.param_groups):
          for key in sorted(group.keys()):
              if key == "params":
                  continue
              if key not in group_dict:
                  group_dict[key] = [group[key]]
              else:
                  group_dict[key].append(group[key])
  
      format_string = self.__class__.__name__ + " ("
      format_string += "\n"
      for k, v in group_dict.items():
          format_string += "\t {0}: {1}\n".format(k, v)
      format_string += ")"
      return format_string
  
imports: import argparse
  from utils import logger
label_desc: Use image node_id 3 for calling the BaseOptim obj's underlying member method code with example usage: obj.__repr__() and returns: format_string