Check the paratemeters given to the function agains param_types and number of parameters using n_params