code: def histogram_neq_edges_weights(data, bin_edges, weights):
      if weights.shape != data.shape:
          raise ValueError(
              "weights should have the same shape as data."
          )
      weights = weights.ravel()
  
      data = data.ravel()
      return _histogram_neq_edges_weights(data, bin_edges, weights)
  
label_desc: Use image node_id 2 for calling a global function with example usage: histogram_neq_edges_weights(data, bin_edges, weights) and returns: _histogram_neq_edges_weights