code: def test_compact_csc_format_homo():
      seeds = torch.tensor([1, 3, 5, 2, 6])
      indptr = torch.tensor([0, 2, 4, 6, 7, 11])
      indices = torch.tensor([2, 3, 1, 4, 5, 2, 5, 1, 4, 4, 6])
      csc_formats = gb.CSCFormatBase(indptr=indptr, indices=indices)
  
      expected_original_row_ids = torch.tensor(
          [1, 3, 5, 2, 6, 2, 3, 1, 4, 5, 2, 5, 1, 4, 4, 6]
      )
      expected_indptr = indptr
      expected_indices = torch.arange(0, len(indices)) + 5
  
      original_row_ids, compacted_csc_formats = gb.compact_csc_format(
          csc_formats, seeds
      )
  
      indptr = compacted_csc_formats.indptr
      indices = compacted_csc_formats.indices
  
      assert torch.equal(indptr, expected_indptr)
      assert torch.equal(indices, expected_indices)
      assert torch.equal(original_row_ids, expected_original_row_ids)
  
file_path: dgl/tests/python/pytorch/graphbolt/test_graphbolt_utils.py
imports: import backend
  import dgl.graphbolt
  import pytest
  import torch
label_desc: Use image node_id 11 for calling a global function with example usage: test_compact_csc_format_homo() without return types