code: def _mkdir_if_not_exist(path):
      """
      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):
                  logging.warning(
                      "be happy if some process has already created %s",
                      path,
                  )
              else:
                  raise OSError(f"Failed to mkdir {path}")
  
file_path: DALI/docs/examples/use_cases/paddle/resnet50/utils/save_load.py
imports: import errno
  import os
  import re
  import shutil
  import tempfile
  import logging
  import paddle
label_desc: Use image node_id 1 for calling a global function with example usage: _mkdir_if_not_exist(path) without return types