code: def test_exclude_edges_homo_deduplicated(reverse_row, reverse_column):
      csc_formats = gb.CSCFormatBase(
          indptr=torch.tensor([0, 0, 1, 2, 2, 3]),
          indices=torch.tensor([0, 3, 2]),
      )
      if reverse_row:
          original_row_node_ids = torch.tensor([10, 15, 11, 24, 9])
          src_to_exclude = torch.tensor([11])
      else:
          original_row_node_ids = None
          src_to_exclude = torch.tensor([2])
  
      if reverse_column:
          original_column_node_ids = torch.tensor([10, 15, 11, 24, 9])
          dst_to_exclude = torch.tensor([9])
      else:
          original_column_node_ids = None
          dst_to_exclude = torch.tensor([4])
      original_edge_ids = torch.Tensor([5, 9, 10])
      subgraph = SampledSubgraphImpl(
          csc_formats,
          original_column_node_ids,
          original_row_node_ids,
          original_edge_ids,
      )
      edges_to_exclude = (src_to_exclude, dst_to_exclude)
      result = subgraph.exclude_edges(edges_to_exclude)
      expected_csc_formats = gb.CSCFormatBase(
          indptr=torch.tensor([0, 0, 1, 2, 2, 2]),
          indices=torch.tensor([0, 3]),
      )
      if reverse_row:
          expected_row_node_ids = torch.tensor([10, 15, 11, 24, 9])
      else:
          expected_row_node_ids = None
      if reverse_column:
          expected_column_node_ids = torch.tensor([10, 15, 11, 24, 9])
      else:
          expected_column_node_ids = None
      expected_edge_ids = torch.Tensor([5, 9])
  
      _assert_container_equal(result.sampled_csc, expected_csc_formats)
      _assert_container_equal(
          result.original_column_node_ids, expected_column_node_ids
      )
      _assert_container_equal(
          result.original_row_node_ids, expected_row_node_ids
      )
      _assert_container_equal(
          result.original_edge_ids, expected_edge_ids
      )
  
file_path: dgl/tests/python/pytorch/graphbolt/impl/test_sampled_subgraph_impl.py
imports: import unittest
  import backend
  import dgl.graphbolt
  import pytest
  import torch
  from dgl.graphbolt.impl.sampled_subgraph_impl import SampledSubgraphImpl
label_desc: Use image node_id 2 for calling a global function with example usage: test_exclude_edges_homo_deduplicated(reverse_row, reverse_column) without return types