code: def mkdir_p(folder_path):
      # Creates a directory. equivalent to using mkdir -p on the command line
      try:
          makedirs(folder_path)
      except OSError as exc:  # Python >2.5
          if exc.errno == EEXIST and path.isdir(folder_path):
              pass
          else:
              raise
  
imports: from errno import EEXIST
  from os import makedirs, path
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: mkdir_p(folder_path) without return types