code: def get_valid_counts(
      data, score_threshold, id_index=0, score_index=1
  ):
      """Get valid count of bounding boxes given a score threshold.
      Also moves valid boxes to the top of input data.
  
      Parameters
      ----------
      data : relay.Expr
          Input data. 3-D tensor with shape [batch_size, num_anchors, 6].
  
      score_threshold : optional, float
          Lower limit of score for valid bounding boxes.
  
      id_index : optional, int
          index of the class categories, -1 to disable.
  
      score_index: optional, int
          Index of the scores/confidence of boxes.
  
      Returns
      -------
      valid_count : relay.Expr
          1-D tensor for valid number of boxes.
  
      out_tensor : relay.Expr
          Rearranged data tensor.
  
      out_indices: relay.Expr
          Indices in input data
      """
      if not isinstance(score_threshold, expr.Expr):
          score_threshold = expr.const(score_threshold, "float32")
      return expr.TupleWrapper(
          _make.get_valid_counts(
              data, score_threshold, id_index, score_index
          ),
          3,
      )
  
imports: from tvm.relay import expr
  from .None import _make
label_desc: Use image node_id 1 for calling a global function with example usage: get_valid_counts(data, score_threshold, id_index, score_index) and returns: expr