code: def shuffle_data(data, labels):
      """Shuffle data and labels.
      Input:
        data: B,N,... numpy array
        label: B,... numpy array
      Return:
        shuffled data, label and shuffle indices
      """
      idx = np.arange(len(labels))
      np.random.shuffle(idx)
      return data[idx, ...], labels[idx], idx
  
file_path: dgl/examples/pytorch/pointcloud/pointnet/provider.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: shuffle_data(data, labels) and returns: data,  labels,  idx