code: def _precision(tp_at_topks, k_list, y_pred_count):
      return tp_at_topks[:, k_list - 1] / np.minimum(
          k_list, y_pred_count[:, np.newaxis]
      )
  
imports: from collections.abc import Sequence
  import dataclasses
  from typing import Any
  import numpy
  from numpy import typing
  from tensorflow_model_analysis.experimental.lazytf import api
  from tensorflow_model_analysis.experimental.metrics.aggregates import _classification
label_desc: Use image node_id 2 for calling a global function with example usage: _precision(tp_at_topks, k_list, y_pred_count) and returns: unknown