<human>:  Give me a Python function to create a directory path.
<bot>: Here is a Python function to create directory paths

import os

def create_dir(path):
  """create_dir(path): create a directory path if it does not exist"""
  if not os.path.exists(path):
    os.makedirs(path)

# Enter the path
path = "/home/rosey/Desktop/"

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

#Example Output
# None

#Remember to inspect code for bugs.