code: def convert_to_return_tuple(plc_pr_retval):
      """
      Using the PLC pagerank return tuple, creates a cudf DataFrame from the cupy
      arrays and extracts the (optional) bool.
      """
      if len(plc_pr_retval) == 3:
          cupy_vertices, cupy_pagerank, converged = plc_pr_retval
      else:
          cupy_vertices, cupy_pagerank = plc_pr_retval
          converged = True
  
      df = cudf.DataFrame()
      df["vertex"] = cupy_vertices
      df["pagerank"] = cupy_pagerank
  
      return (df, converged)
  
file_path: cugraph/python/cugraph/cugraph/dask/link_analysis/pagerank.py
imports: import warnings
  import dask
  from dask.distributed import wait, default_client
  import dask_cudf
  import cudf
  import numpy
  from pylibcugraph import pagerank, personalized_pagerank, exceptions, ResourceHandle
  import cugraph.dask.comms.comms
  from cugraph.dask.common.part_utils import persist_dask_df_equal_parts_per_worker
  from cugraph.exceptions import FailedToConvergeError
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_return_tuple(plc_pr_retval) and returns: df,  converged