code: def test_get_source_destination_range():
      df = get_dummy_sampled_df()
      output_d = _get_source_destination_range(df)
  
      expected_output = {
          (0, 0): {"sources_range": 0, "destinations_range": 1},
          (0, 1): {"sources_range": 1, "destinations_range": 2},
          (1, 0): {"sources_range": 0, "destinations_range": 1},
          (1, 1): {"sources_range": 1, "destinations_range": 2},
          (2, 0): {"sources_range": 0, "destinations_range": 2},
          (2, 1): {"sources_range": 2, "destinations_range": 1},
      }
  
      assert output_d == expected_output
  
file_path: cugraph/python/cugraph-dgl/tests/test_utils.py
imports: import cudf
  import cupy
  import numpy
  from cugraph_dgl.dataloading.utils.sampling_helpers import cast_to_tensor, _get_renumber_map, _split_tensor, _get_tensor_d_from_sampled_df, create_homogeneous_sampled_graphs_from_dataframe, _get_source_destination_range, _create_homogeneous_cugraph_dgl_nn_sparse_graph, create_homogeneous_sampled_graphs_from_dataframe_csc
  from cugraph.utilities.utils import import_optional
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_source_destination_range() without return types