code: def test_recommed_predict(self):
      model = SessionRecommender(30, 5, [10, 5], 2, True, [6, 3], 5)
      input_data = [
          [
              np.random.randint(1, 30, size=(2)),
              np.random.randint(1, 30, size=(5)),
              np.random.randint(1, 30),
          ]
          for i in range(100)
      ]
      samples = [
          Sample.from_ndarray(
              (input_data[i][0], input_data[i][1]),
              np.array(input_data[i][2]),
          )
          for i in range(100)
      ]
      rdd = self.sc.parallelize(samples)
      results1 = model.predict(rdd).collect()
      print(results1[0])
  
      recommendations1 = model.recommend_for_session(
          rdd, 3, zero_based_label=False
      ).collect()
      print(recommendations1[0])
  
      recommendations2 = model.recommend_for_session(
          samples, 3, zero_based_label=False
      )
      print(recommendations2[0])
  
file_path: analytics-zoo/pyzoo/test/zoo/models/recommendation/test_sessionrecommender.py
imports: import pytest
  import random
  from zoo.pipeline.api.keras.layers import *
  from zoo.models.recommendation import SessionRecommender
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
label_desc: Use image node_id 5 for calling the TestSessionRecommender obj's underlying member method code with example usage: obj.test_recommed_predict() without return types