class_docstr: Main logger - the aim of this class is to store every log from training
  Log is a float value with corresponding training engine step
class_docstr_tok: ["Main","logger","-","the","aim","of","this","class","is","to","store","every","log","from","training","Log","is","a","float","value","with","corresponding","training","engine","step"]
code: def _find_suffix_with_group_patterns(self, metric_name: str) -> str:
      suffix = metric_name
      for pattern, _ in self.group_patterns:
          match = re.match(pattern, metric_name)
          if match:
              suffix = match.groups()[-1]
      return suffix
  
file_path: livelossplot/livelossplot/main_logger.py
imports: import re
  from collections import OrderedDict, defaultdict
  from typing import NamedTuple, Dict, Iterable, List, Pattern, Tuple, Optional, Union
label_desc: Use image node_id 8 for calling the MainLogger obj's underlying member method code with example usage: obj._find_suffix_with_group_patterns(metric_name) and returns: suffix