class_docstr: Calculate the average precision and average precision at n.
code: def _shuffle(predictions, actuals):
      random.seed(0)
      suffidx = random.sample(range(len(predictions)), len(predictions))
      predictions = predictions[suffidx]
      actuals = actuals[suffidx]
      return predictions, actuals
  
file_path: PaddleHub/modules/video/classification/videotag_tsn_lstm/resource/metrics/youtube8m/average_precision_calculator.py
imports: import heapq
  import random
  import numbers
  import numpy
label_desc: Use image node_id 9 for calling the AveragePrecisionCalculator obj's underlying member method code with example usage: obj._shuffle(predictions, actuals) and returns: predictions,  actuals