<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def move_dirty_lock_file(dirty_lock_file, sm_path):
 """ Move the dirt_lock file to the sm_path and thereby is not found by auto recovery of backup anymore """

    if dirty_lock_file is not None \
            and not dirty_lock_file == os.path.join(sm_path, dirty_lock_file.split(os.sep)[-1]):
        logger.debug("Move dirty lock from root tmp folder {0} to state machine folder {1}"
                     "".format(dirty_lock_file, os.path.join(sm_path, dirty_lock_file.split(os.sep)[-1])))
        os.rename(dirty_lock_file, os.path.join(sm_path, dirty_lock_file.split(os.sep)[-1]))