code: def mkdir_recursive(dirname):
      
      parent = os.path.dirname(dirname)
      if parent != "":
          if not os.path.exists(parent):
              mkdir_recursive(parent)
          if not os.path.exists(dirname):
              os.mkdir(dirname)
      elif not os.path.exists(dirname):
          os.mkdir(dirname)
docs: makes all the directories along a given path, if they do not exist