code: def test_intent_entity(self):
      model = IntentEntity(
          num_intents=8,
          num_entities=5,
          word_length=10,
          word_vocab_size=200,
          char_vocab_size=50,
      )
      input_data = [
          np.random.randint(200, size=(8, 30)),
          np.random.randint(50, size=(8, 30, 10)),
      ]
      output = model.predict(input_data, distributed=True)
      assert isinstance(output, list) and len(output) == 2
      assert output[0].shape == (8, 8)
      assert output[1].shape == (8, 30, 5)
      self.assert_tfpark_model_save_load(model, input_data)
  
file_path: analytics-zoo/pyzoo/test/zoo/tfpark/test_text_models.py
imports: import pytest
  import numpy
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.tfpark.text.keras import *
label_desc: Use image node_id 2 for calling the TestTextModels obj's underlying member method code with example usage: obj.test_intent_entity() without return types