<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def FibreCouple(pupils,modeDiameter):
 """ Return the complex amplitudes coupled into a set of fibers """

    gridSize=pupils.shape[-1]
    pupilsVector=np.reshape(pupils,(-1,gridSize**2))
    mode=np.reshape(FibreMode(gridSize,modeDiameter),(gridSize**2,))
    return np.inner(pupilsVector,mode)