code: def test_renumber_ips_cols():
      source_list = [
          "192.168.1.1",
          "172.217.5.238",
          "216.228.121.209",
          "192.16.31.23",
      ]
      dest_list = [
          "172.217.5.238",
          "216.228.121.209",
          "192.16.31.23",
          "192.168.1.1",
      ]
  
      pdf = pd.DataFrame(
          {"source_list": source_list, "dest_list": dest_list}
      )
  
      gdf = cudf.from_pandas(pdf)
  
      gdf["source_as_int"] = gdf["source_list"].str.ip2int()
      gdf["dest_as_int"] = gdf["dest_list"].str.ip2int()
  
      # Brackets are added to the column names to trigger the python renumebring
      renumbered_gdf, renumber_map = NumberMap.renumber(
          gdf, ["source_as_int"], ["dest_as_int"], preserve_order=True
      )
  
      input_check = renumbered_gdf.merge(
          gdf, on=["source_list", "dest_list"]
      )
  
      output_check = renumber_map.from_internal_vertex_id(
          renumbered_gdf,
          renumber_map.renumbered_src_col_name,
          external_column_names=["check_src"],
      )
      output_check = renumber_map.from_internal_vertex_id(
          output_check,
          renumber_map.renumbered_dst_col_name,
          external_column_names=["check_dst"],
      )
  
      merged = output_check.merge(
          input_check, on=["source_list", "dest_list"]
      )
  
      assert_series_equal(
          merged["check_src"],
          merged["source_as_int"],
          check_names=False,
      )
      assert_series_equal(
          merged["check_dst"], merged["dest_as_int"], check_names=False
      )
  
file_path: cugraph/python/cugraph/cugraph/tests/internals/test_renumber.py
imports: import gc
  import pytest
  import pandas
  import cudf
  from cudf.testing import assert_series_equal
  from cugraph.structure.number_map import NumberMap
  from cugraph.testing import utils, DEFAULT_DATASETS
label_desc: Use image node_id 1 for calling a global function with example usage: test_renumber_ips_cols() without return types