<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mkdir(dir, enter):
 """Create directory with template for topic of the current environment """


    if not os.path.exists(dir):
        os.makedirs(dir)