code: def filter_scores_greater_than(boxlist, thresh):
      """Filter to keep only boxes with score exceeding a given threshold.
  
      This op keeps the collection of boxes whose corresponding scores are
      greater than the input threshold.
  
      Args:
        boxlist: BoxList holding N boxes.  Must contain a 'scores' field
          representing detection scores.
        thresh: scalar threshold
  
      Returns:
        a BoxList holding M boxes where M <= N
  
      Raises:
        ValueError: if boxlist not a BoxList object or if it does not
          have a scores field
      """
      if not isinstance(boxlist, np_box_list.BoxList):
          raise ValueError("boxlist must be a BoxList")
      if not boxlist.has_field("scores"):
          raise ValueError("input boxlist must have 'scores' field")
      scores = boxlist.get_field("scores")
      if len(scores.shape) > 2:
          raise ValueError("Scores should have rank 1 or 2")
      if len(scores.shape) == 2 and scores.shape[1] != 1:
          raise ValueError(
              "Scores should have rank 1 or have shape "
              "consistent with [None, 1]"
          )
      high_score_indices = np.reshape(
          np.where(np.greater(scores, thresh)), [-1]
      ).astype(np.int32)
      return gather(boxlist, high_score_indices)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import numpy
  from .None import np_box_list, np_box_ops
label_desc: Use image node_id 14 for calling a global function with example usage: filter_scores_greater_than(boxlist, thresh) and returns: gather