code: def get_edge_df_from_homogenous_block(block):
      block = block.to("cpu")
      src, dst, eid = block.edges("all")
      src = block.srcdata[dgl.NID][src]
      dst = block.dstdata[dgl.NID][dst]
      eid = block.edata[dgl.EID][eid]
      df = pd.DataFrame({"src": src, "dst": dst, "eid": eid})
      return df.sort_values(by="eid").reset_index(drop=True)
  
file_path: cugraph/python/cugraph-dgl/tests/test_dataset.py
imports: import pytest
  from dgl.dataloading import MultiLayerNeighborSampler
  import dgl
  import torch
  import cudf
  import pandas
  import cupy
  import numpy
  from cugraph_dgl.dataloading.utils.sampling_helpers import create_homogeneous_sampled_graphs_from_dataframe
label_desc: Use image node_id 1 for calling a global function with example usage: get_edge_df_from_homogenous_block(block) and returns: df