code: def test_k_core_corenumber_multicolumn(graph_file):
      dataset_path = graph_file.get_path()
      cu_M = utils.read_csv_file(dataset_path)
      cu_M.rename(columns={"0": "src_0", "1": "dst_0"}, inplace=True)
      cu_M["src_1"] = cu_M["src_0"] + 1000
      cu_M["dst_1"] = cu_M["dst_0"] + 1000
  
      G1 = cugraph.Graph()
      G1.from_cudf_edgelist(
          cu_M,
          source=["src_0", "src_1"],
          destination=["dst_0", "dst_1"],
      )
  
      corenumber_G1 = cugraph.core_number(G1)
      corenumber_G1.rename(
          columns={"core_number": "values"}, inplace=True
      )
      corenumber_G1 = corenumber_G1[["0_vertex", "1_vertex", "values"]]
      corenumber_G1 = None
      ck_res = cugraph.k_core(G1, core_number=corenumber_G1)
      G2 = cugraph.Graph()
      G2.from_cudf_edgelist(
          cu_M, source="src_0", destination="dst_0", renumber=False
      )
  
      corenumber_G2 = cugraph.core_number(G2)
      corenumber_G2.rename(
          columns={"core_number": "values"}, inplace=True
      )
      corenumber_G2 = corenumber_G2[["vertex", "values"]]
      ck_exp = cugraph.k_core(G2, core_number=corenumber_G2)
  
      # FIXME: Replace with multi-column view_edge_list()
      edgelist_df = ck_res.edgelist.edgelist_df
      edgelist_df_res = ck_res.unrenumber(edgelist_df, "src")
      edgelist_df_res = ck_res.unrenumber(edgelist_df_res, "dst")
  
      for i in range(len(edgelist_df_res)):
          assert ck_exp.has_edge(
              edgelist_df_res["0_src"].iloc[i],
              edgelist_df_res["0_dst"].iloc[i],
          )
  
file_path: cugraph/python/cugraph/cugraph/tests/core/test_k_core.py
imports: import gc
  import pytest
  import networkx
  import cugraph
  from cugraph.testing import utils, UNDIRECTED_DATASETS
label_desc: Use image node_id 6 for calling a global function with example usage: test_k_core_corenumber_multicolumn(graph_file) without return types