class_docstr_tok: []
code: def test_pair_ind(self):
      data1 = Data(pos=torch.randn(100, 3))
      data2 = Data(pos=torch.randn(114, 3))
      pair1 = Pair.make_pair(data1, data2)
      pair1.pair_ind = torch.tensor(
          [[0, 1], [99, 36], [98, 113], [54, 29], [10, 110], [1, 0]]
      )
      data3 = Data(pos=torch.randn(102, 3))
      data4 = Data(pos=torch.randn(104, 3))
      pair2 = Pair.make_pair(data3, data4)
      pair2.pair_ind = torch.tensor(
          [
              [0, 1],
              [45, 28],
              [101, 36],
              [98, 1],
              [14, 99],
              [34, 52],
              [1, 0],
          ]
      )
      data5 = Data(pos=torch.randn(128, 3))
      data6 = Data(pos=torch.randn(2102, 3))
      pair3 = Pair.make_pair(data5, data6)
      pair3.pair_ind = torch.tensor([[0, 1], [100, 1000], [1, 0]])
  
      batch = PairBatch.from_data_list([pair1, pair2, pair3])
      expected_pair_ind = torch.tensor(
          [
              [0, 1],
              [99, 36],
              [98, 113],
              [54, 29],
              [10, 110],
              [1, 0],
              [0 + 100, 1 + 114],
              [45 + 100, 28 + 114],
              [101 + 100, 36 + 114],
              [98 + 100, 1 + 114],
              [14 + 100, 99 + 114],
              [34 + 100, 52 + 114],
              [1 + 100, 0 + 114],
              [0 + 100 + 102, 1 + 114 + 104],
              [100 + 100 + 102, 1000 + 114 + 104],
              [1 + 100 + 102, 0 + 114 + 104],
          ]
      ).to(torch.long)
      npt.assert_almost_equal(
          batch.pair_ind.numpy(), expected_pair_ind.numpy()
      )
  
file_path: torch-points3d/test/test_msdatapair.py
imports: import unittest
  import torch
  import torch.testing
  from torch_geometric.data import Data
  import numpy.testing
  from torch_points3d.datasets.registration.pair import Pair, MultiScalePair, PairBatch, PairMultiScaleBatch
label_desc: Use image node_id 4 for calling the TestMSPair obj's underlying member method code with example usage: obj.test_pair_ind() without return types