code: def setUpClass(cls):
      (
          cls.interactions,
          cls.user_features,
          cls.item_features,
      ) = generate_dummy_data_with_indicator(
          num_users=10, num_items=12, interaction_density=0.5
      )
      model = TensorRec(n_components=10)
      model.fit(
          cls.interactions,
          cls.user_features,
          cls.item_features,
          epochs=10,
      )
      cls.model = model
      cls.ranks = model.predict_rank(
          user_features=cls.user_features,
          item_features=cls.item_features,
      )
  
file_path: tensorrec/test/test_eval.py
imports: from unittest import TestCase
  from numpy.random import shuffle
  import numpy
  import scipy.sparse
  from tensorrec import TensorRec
  from tensorrec.eval import recall_at_k, precision_at_k, f1_score_at_k, ndcg_at_k
  from tensorrec.eval import _setup_ndcg, _idcg, _dcg
  from tensorrec.util import generate_dummy_data_with_indicator
label_desc: Use image node_id 1 for calling the EvalTestCase obj's underlying member method code with example usage: obj.setUpClass(cls) without return types