<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def append_position(path, position, separator=''):
 """ Concatenate a path and a position, between the filename and the extension. """

    filename, extension = os.path.splitext(path)
    return ''.join([filename, separator, str(position), extension])