code: def _evaluate(model, test):
      test_mrr = sequence_mrr_score(model, test)
  
      print("Test MRR {}".format(test_mrr.mean()))
  
      return test_mrr
  
imports: import os
  import numpy
  import pytest
  from spotlight.cross_validation import user_based_train_test_split
  from spotlight.datasets import synthetic
  from spotlight.evaluation import sequence_mrr_score
  from spotlight.layers import BloomEmbedding
  from spotlight.sequence.implicit import ImplicitSequenceModel
  from spotlight.sequence.representations import CNNNet, LSTMNet, PoolNet
label_desc: Use image node_id 2 for calling a global function with example usage: _evaluate(model, test) and returns: test_mrr