<human>:  get path of parent folder.
<bot>: Here is a Python program to get the path of the parent folder

import os

def get_parent_dir(path):
  """
  Get path of parent folder.
  """
  return os.path.dirname(path)

# Enter the path
path = '/home/user/Desktop/'

# Calling the function
print((get_parent_dir(path)))

#Example Output
# /home/user/Desktop

#Remember to inspect code for bugs.