code: def get_top_N_index(self, scores, N, threshold):
      # this function handles scores still being device tensors
  
      # move scores to host if needed
      if isinstance(scores, np.ndarray):
          np_scores = scores.ravel()
      else:
          np_scores = scores.get().ravel()
  
      # apply threshold if needed
      if threshold is None:
          count = len(np_scores)
      else:
          count = len(np.where(np_scores > threshold)[0])
  
      order = np_scores.argsort()[::-1].tolist()
      order = order[:count]
      if N > 0:
          order = order[:N]
  
      return order
  
imports: from neon.layers.layer import Layer, ParameterLayer
  import numpy
  from neon.transforms import Softmax
  from neon.initializers.initializer import Constant
  import math
  from collections import OrderedDict
label_desc: Use image node_id 6 for calling the DetectionOutput obj's underlying member method code with example usage: obj.get_top_N_index(scores, N, threshold) and returns: order