<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def easeInElastic(n, amplitude=1, period=0.3):
 """An elastic tween function that begins with an increasing wobble and then snaps into the destination. Args: n (float):
 The time progress, starting at 0.0 and ending at 1.0. Returns: (float) The line progress, starting at 0.0 and ending at 1.0. Suitable for passing to getPointOnLine(). """

    _checkRange(n)
    return 1 - easeOutElastic(1-n, amplitude=amplitude, period=period)