human
Give me a Python code to create a folder if it exists and create it.
assistant
Here is a Python code to create a folder if it exists and exists

import os

def if_folder_exist_and_create(path):
    """
    If folder exist and create.
    """
    if not os.path.exists(path):
        os.makedirs(path)

# Enter the path
path = '/Users/
Rosey/Desktop/test'

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

#Example Output
# None

#Remember to inspect code for bugs.