code: def remove_duplicate_notes(data):
      """
      Remove duplicate rows from the array.
  
      Parameters
      ----------
      data : numpy array
          Data.
  
      Returns
      -------
      numpy array
          Data array with duplicate rows removed.
  
      Notes
      -----
      This function removes only exact duplicates.
  
      """
      if data.size == 0:
          return data
      # found here: http://stackoverflow.com/questions/2828059/
      # find the unique rows
      order = np.ascontiguousarray(data).view(
          np.dtype((np.void, data.dtype.itemsize * data.shape[1]))
      )
      unique = np.unique(order, return_index=True)[1]
      # only use the unique rows
      data = data[unique]
      # sort them by the first column and return them
      return data[data[:, 0].argsort()]
  
imports: from __future__ import absolute_import, division, print_function
  import warnings
  import numpy
  from .None import evaluation_io, MultiClassEvaluation, SumEvaluation, MeanEvaluation
  from .onsets import onset_evaluation, OnsetEvaluation
  from ..io import load_notes
label_desc: Use image node_id 1 for calling a global function with example usage: remove_duplicate_notes(data) and returns: data, data