code: def get_points_inside_bbox(x, y, bbox):
      """Return the indices of points inside the given bbox."""
      x1, y1, x2, y2 = bbox.xmin, bbox.ymin, bbox.xmax, bbox.ymax
      x_in = np.logical_and(x > x1, x < x2)
      y_in = np.logical_and(y > y1, y < y2)
      return np.asarray(np.nonzero(x_in & y_in)[0])
  
imports: from __future__ import division
  import sys
  from itertools import product
  from operator import itemgetter
  import matplotlib
  import numpy
  from matplotlib import pyplot
  from matplotlib.path import get_path_collection_extents
label_desc: Use image node_id 5 for calling a global function with example usage: get_points_inside_bbox(x, y, bbox) and returns: np