code: def makedirs(directory):
      
      parent = os.path.dirname(os.path.abspath(directory))
      if not os.path.exists(parent):
          makedirs(parent)
      os.mkdir(directory)
docs: Resursively create a named directory.