code: def mkdir_p(path):
      """Reproduces the 'mkdir -p shell' command
  
      See
      http://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python
      """
      try:
          os.makedirs(str(path))
      except OSError as exc:  # Python >2.5
          if exc.errno == errno.EEXIST and path.is_dir():
              pass
          else:
              raise
  
file_path: snips-nlu/snips_nlu/common/io_utils.py
imports: import errno
  import os
  import shutil
  from contextlib import contextmanager
  from pathlib import Path
  from tempfile import mkdtemp
  from zipfile import ZipFile, ZIP_DEFLATED
label_desc: Use image node_id 1 for calling a global function with example usage: mkdir_p(path) without return types