code: def get_tag(_tag: Optional[str], _serial: Optional[int]):
      r"""
      Get the file tag with serial number.
  
      Examples:
          >>> get_tag('epoch', 1)
          _epoch-1
      """
      _tag = "" if _tag is None else "_" + _tag
      if _serial is not None:
          _tag += "-" + str(_serial)
      return _tag
  
imports: import os
  import datetime
  import importlib
  from accelerate.logging import get_logger
  from typing import Union, Optional
  import shutil
  import torch
  from accelerate.utils import set_seed
  from transformers import AutoTokenizer, BertTokenizer
  from .enum_type import PLM_MODELS, RNN_MODELS
label_desc: Use image node_id 7 for calling a global function with example usage: get_tag(_tag, _serial) and returns: _tag