code: def parse_time(time):
      """Change the time to seconds"""
      unit = time[-1]
      if unit not in ["s", "m", "h", "d"]:
          raise SchemaError(
              "the unit of time could only from {s, m, h, d}"
          )
      time = time[:-1]
      if not time.isdigit():
          raise SchemaError("time format error!")
      parse_dict = {"s": 1, "m": 60, "h": 3600, "d": 86400}
      return int(time) * parse_dict[unit]
  
file_path: nni/nni/tools/nnictl/launcher_utils.py
imports: import os
  from schema import SchemaError
  from .config_schema import NNIConfigSchema
  from .common_utils import print_normal
label_desc: Use image node_id 3 for calling a global function with example usage: parse_time(time) and returns: unknown