IGNITE-11012: [ML] Add model type validation during parsing json file