code: def check_results(ranks):
      train_recall_at_10 = tensorrec.eval.recall_at_k(
          test_interactions=sparse_train_ratings_4plus,
          predicted_ranks=ranks,
          k=10,
      ).mean()
      test_recall_at_10 = tensorrec.eval.recall_at_k(
          test_interactions=sparse_test_ratings_4plus,
          predicted_ranks=ranks,
          k=10,
      ).mean()
      print(
          "Recall at 10: Train: {:.4f} Test: {:.4f}".format(
              train_recall_at_10, test_recall_at_10
          )
      )
  
file_path: tensorrec/examples/getting_started.py
imports: from collections import defaultdict
  import csv
  import numpy
  import random
  from scipy import sparse
  from sklearn.preprocessing import MultiLabelBinarizer
  import tensorrec
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: check_results(ranks) without return types