def METHOD_NAME(func):
  def wrapper(*args, **kwargs):
    error_flag = GLOBAL_MAP.get_ele(NNDCT_KEYS.ERROR_FLAG)
    if error_flag == True:
      print("[NNDCT_ERROR]", end='')
    return func(*args, **kwargs)
    if error_flag == True:
      exit(1)
  return wrapper