code: def parse_max_duration_time(max_exec_duration):
      unit = max_exec_duration[-1]
      time = max_exec_duration[:-1]
      units_dict = {"s": 1, "m": 60, "h": 3600, "d": 86400}
      return int(time) * units_dict[unit]
  
imports: import contextlib
  import collections
  import os
  import socket
  import sys
  import subprocess
  import requests
  import time
  import yaml
  import shlex
  import warnings
label_desc: Use image node_id 18 for calling a global function with example usage: parse_max_duration_time(max_exec_duration) and returns: unknown