code: def makedirs(path):
      """Create directory recursively if not exists.
      Similar to `makedir -p`, you can skip checking existence before this function.
  
      Parameters
      ----------
      path : str
          Path of the desired dir
      """
      try:
          os.makedirs(path)
      except OSError as exc:
          if exc.errno != errno.EEXIST:
              raise
  
imports: import os
  import errno
  import contextlib
  from pathlib import Path
  import tarfile
  import zipfile
label_desc: Use image node_id 1 for calling a global function with example usage: makedirs(path) without return types