code: def makedirs(name):
      
  
      import os, errno
  
      try:
          os.makedirs(name)
      except OSError as ex:
          if ex.errno == errno.EEXIST and os.path.isdir(name):
              # ignore existing directory
              pass
          else:
              # a different error happened
              raise
docs: helper function for python 2 and 3 to call os.makedirs()
         avoiding an error if the directory to be created already exists