code: def makedirs(path, exist_ok=True):
    
  
    try:
      os.makedirs(path)
    except OSError as exc:
      if exist_ok and exc.errno == errno.EEXIST:
        return
      raise
docs: Like #os.makedirs(), with *exist_ok* defaulting to #True.