[SPARK-37405][FOLLOW-UP][PYTHON][ML] Move _input_kwargs hints to consistent positions
[SPARK-37405][FOLLOW-UP][PYTHON][ML] Move _input_kwargs hints to consistent positions

### What changes were proposed in this pull request?
This PR moves `_input_kwargs` hints to beginning of the bodies of the annotated classes.

### Why are the changes needed?
Consistency with other modules.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing tests.

Closes #36203 from zero323/SPARK-37405-FOLLOW-UP.

Authored-by: zero323 <0f81822ec43dc7f424811d0a422871ea124aa3dd@gmail.com>
Signed-off-by: zero323 <0f81822ec43dc7f424811d0a422871ea124aa3dd@gmail.com>

holdenk/spark,apache/spark,zero323/spark,HyukjinKwon/spark,dongjoon-hyun/spark,nchammas/spark,dongjoon-hyun/spark,zzcclp/spark,zero323/spark,rednaxelafx/apache-spark,ueshin/apache-spark,witgo/spark,cloud-fan/spark,srowen/spark,rednaxelafx/apache-spark,hvanhovell/spark,JoshRosen/spark,cloud-fan/spark,gengliangwang/spark,dongjoon-hyun/spark,dongjoon-hyun/spark,JoshRosen/spark,wangyum/spark,nchammas/spark,holdenk/spark,shaneknapp/spark,WeichenXu123/spark,hvanhovell/spark,witgo/spark,HyukjinKwon/spark,ueshin/apache-spark,wangyum/spark,zzcclp/spark,rednaxelafx/apache-spark,shaneknapp/spark,WeichenXu123/spark,vinodkc/spark,gengliangwang/spark,HyukjinKwon/spark,ueshin/apache-spark,rednaxelafx/apache-spark,nchammas/spark,mahak/spark,ueshin/apache-spark,HyukjinKwon/spark,vinodkc/spark,cloud-fan/spark,dongjoon-hyun/spark,wangyum/spark,mahak/spark,shaneknapp/spark,srowen/spark,nchammas/spark,vinodkc/spark,witgo/spark,gengliangwang/spark,zzcclp/spark,wangyum/spark,zzcclp/spark,ueshin/apache-spark,holdenk/spark,HyukjinKwon/spark,WeichenXu123/spark,hvanhovell/spark,gengliangwang/spark,JoshRosen/spark,mahak/spark,nchammas/spark,mahak/spark,holdenk/spark,apache/spark,rednaxelafx/apache-spark,HyukjinKwon/spark,WeichenXu123/spark,srowen/spark,JoshRosen/spark,ueshin/apache-spark,JoshRosen/spark,dongjoon-hyun/spark,wangyum/spark,nchammas/spark,shaneknapp/spark,HyukjinKwon/spark,witgo/spark,hvanhovell/spark,gengliangwang/spark,srowen/spark,srowen/spark,ueshin/apache-spark,wangyum/spark,zero323/spark,apache/spark,gengliangwang/spark,mahak/spark,shaneknapp/spark,cloud-fan/spark,zzcclp/spark,WeichenXu123/spark,shaneknapp/spark,JoshRosen/spark,hvanhovell/spark,cloud-fan/spark,hvanhovell/spark,gengliangwang/spark,dongjoon-hyun/spark,holdenk/spark,JoshRosen/spark,apache/spark,witgo/spark,WeichenXu123/spark,zero323/spark,apache/spark,apache/spark,cloud-fan/spark,zero323/spark,rednaxelafx/apache-spark,zero323/spark,vinodkc/spark,mahak/spark,witgo/spark,apache/spark,mahak/spark,holdenk/spark,WeichenXu123/spark,vinodkc/spark,wangyum/spark,vinodkc/spark,srowen/spark,zero323/spark,zzcclp/spark,srowen/spark,vinodkc/spark,shaneknapp/spark,holdenk/spark,cloud-fan/spark,rednaxelafx/apache-spark,hvanhovell/spark,nchammas/spark,witgo/spark,zzcclp/spark