class_docstr: TransformTest
      
code: def test_filter_adj(self):
      edge_list = [
          [2, 0],
          [2, 1],
          [3, 1],
          [4, 0],
          [5, 0],
          [6, 0],
          [6, 4],
          [6, 5],
          [7, 0],
          [7, 1],
          [7, 2],
          [7, 3],
          [8, 0],
          [9, 7],
      ]
      edge_index = paddle.to_tensor(edge_list)
      perm = paddle.to_tensor([0, 1, 2, 4, 5, 8, 9])
      edge_index, _ = filter_adj(edge_index, perm)
      edge_index_ = [[2, 0], [2, 1], [3, 0], [4, 0], [5, 0]]
      self.assertAlmostEqual(edge_index.numpy().tolist(), edge_index_)
  
file_path: PGL/tests/test_transform.py
imports: import os
  import sys
  import re
  import time
  import unittest
  import numpy
  import paddle
  import pgl
  from pgl.utils.logger import log
  from pgl.utils.transform import to_dense_batch, filter_adj
label_desc: Use image node_id 2 for calling the TransformTest obj's underlying member method code with example usage: obj.test_filter_adj() without return types