code: def mkdir_parents(path):
      
  
      try:
          os.makedirs(path)
      except OSError as exc:
          if exc.errno == errno.EEXIST:
              pass
          else:
              raise
docs: Create the given directory path.
      This includes all necessary parent directories. Does not raise an error if
      the directory already exists.
      :param path: path to create