Creating a function converting a dictionary of user-specified parameters into a cara.models.Model object