code: def _hash(self, x):
      return hashlib.md5(
          json.dumps(x, sort_keys=True).encode("utf-8")
      ).hexdigest()
  
imports: import hashlib
  import json
  import os
  import shutil
  import sys
  import numpy
  from sklearn.model_selection import ParameterSampler
  from spotlight.datasets.movielens import get_movielens_dataset
  from spotlight.cross_validation import user_based_train_test_split
  from spotlight.sequence.implicit import ImplicitSequenceModel
  from spotlight.sequence.representations import CNNNet
  from spotlight.evaluation import sequence_mrr_score
label_desc: Use image node_id 2 for calling the Results obj's underlying member method code with example usage: obj._hash(x) and returns: hashlib