<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_dir(directory):
 """Create given directory, if doesn't exist. Parameters directory : string Directory path (can be relative or absolute) Returns ------- string Absolute directory path """

    if not os.access(directory, os.F_OK):
        os.makedirs(directory)
    return os.path.abspath(directory)