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/scikit-learn/py2/sklearn/datasets/kddcup99.py
imports: import sys
  import errno
  from gzip import GzipFile
  from io import BytesIO
  import logging
  import os
  from os.path import exists, join
  import numpy
  from .base import get_data_home
  from .base import Bunch
  from ..externals import joblib, six
  from ..utils import check_random_state
  from ..utils import shuffle
label_desc: Use image node_id 3 for calling a global function with example usage: _mkdirp(d) without return types