code: def mkdirp(d):
      """Ensure directory d exists (like mkdir -p on Unix)
      No guarantee that the directory is writable.
      """
      try:
          os.makedirs(d)
      except OSError as e:
          if e.errno != errno.EEXIST:
              raise
  
file_path: catboost/contrib/python/joblib/joblib/disk.py
imports: import os
  import sys
  import time
  import errno
  import shutil
  from multiprocessing import util
label_desc: Use image node_id 3 for calling a global function with example usage: mkdirp(d) without return types