code: def searchsorted(bin_locations, inputs, eps=1e-6):
      bin_locations[..., -1] += eps
      return torch.sum(inputs[..., None] >= bin_locations, dim=-1) - 1
  
imports: import numpy
  import torch
  from torch.nn import functional
label_desc: Use image node_id 2 for calling a global function with example usage: searchsorted(bin_locations, inputs, eps) and returns: unknown