code: def test_invalid_data_handling(self):
      keras_model = self.create_multi_input_output_model()
      model = KerasModel(keras_model)
      x, y = self.create_training_data()
      val_x, val_y = self.create_training_data()
  
      # Number doesn't match
      with pytest.raises(RuntimeError) as excinfo:
          model.fit([x, x], [y, y, y], batch_size=4, distributed=True)
  
      assert "model_target number does not match data number" in str(
          excinfo.value
      )
  
      # Dict as input
      with pytest.raises(RuntimeError) as excinfo:
          model.fit(
              {"input_1": x}, [y, y], batch_size=4, distributed=True
          )
  
      assert "all model_input names should exist in data" in str(
          excinfo.value
      )
  
file_path: BigDL/python/orca/test/bigdl/orca/tfpark/test_keras_model.py
imports: import pytest
  from bigdl.dllib.feature.image import *
  from bigdl.orca.test_zoo_utils import ZooTestCase
  import tensorflow
  import numpy
  import os
  from bigdl.orca.tfpark import KerasModel
label_desc: Use image node_id 5 for calling the TestTFParkModel obj's underlying member method code with example usage: obj.test_invalid_data_handling() without return types