code: def _mkdir_if_not_exist(path, logger):
      """
      mkdir if not exists, ignore the exception when multiprocess mkdir together
      """
      if not os.path.exists(path):
          try:
              os.makedirs(path)
          except OSError as e:
              if e.errno == errno.EEXIST and os.path.isdir(path):
                  logger.warning(
                      "be happy if some process has already created {}".format(
                          path
                      )
                  )
              else:
                  raise OSError("Failed to mkdir {}".format(path))
  
imports: import paddle
  import numpy
  import os
  import paddle.nn
  import paddle.distributed
  from loss import build_loss, LossDistill, DMLLoss, KLJSLoss
  from optimizer import create_optimizer
  from data_loader import build_dataloader
  from metric import create_metric
  from mv3 import MobileNetV3_large_x0_5, distillmv3_large_x0_5, build_model
  from config import preprocess
  import time
  from paddleslim.dygraph.quant import QAT
  from slim.slim_quant import PACT, quant_config
  from slim.slim_fpgm import prune_model
  from utils import load_model
label_desc: Use image node_id 1 for calling a global function with example usage: _mkdir_if_not_exist(path, logger) without return types