Human: mkdirs with permission. Assistant: 
Here is a Python function to mkdirs with permission

import os

def mkdirs(path, mode=0o777):
    """
    Creates a directory tree.

    :param path: The path to be created
    :param mode: The permission to be set
    """
    import os
    if not os.path.exists(path):
        os.makedirs(path, mode)

# Enter the path
path = "C:\\Users\\carnation\\Desktop\\python_exercises"

# Enter the permission
mode = 0o777

# Calling the function
print((mkdirs(path, mode)))

#Example Output
# None

#Remember to inspect code for bugs.