code: def _get_precision_recall(predictions, targets, k):
      predictions = predictions[:k]
      num_hit = len(set(predictions).intersection(set(targets)))
  
      return float(num_hit) / len(predictions), float(num_hit) / len(
          targets
      )
  
imports: import numpy
  import scipy.stats
label_desc: Use image node_id 4 for calling a global function with example usage: _get_precision_recall(predictions, targets, k) and returns: unknown,  unknown