code: def __init__(self, precision_at, name="Precision"):
      self._precision_at = np.array(precision_at)
  
      super(Precision, self).__init__(etype="rank", name=name)
  
imports: import numpy
  from openrec.tf1.legacy.utils.evaluators import Evaluator
label_desc: Use image node_id 1 to create a new Precision object from inherited base classes: Evaluator with example: obj = Precision(precision_at, name)