code: def df_to_pdf(df, engine: Engine):
      if engine == Engine.PANDAS:
          return df
      elif engine == Engine.CUDF:
          return df.to_pandas()
      elif engine == Engine.DASK:
          return df.compute()
      raise ValueError("Only engines pandas/cudf supported")
  
file_path: pygraphistry/graphistry/Engine.py
imports: import pandas
  from typing import Any, Optional, Union
  from enum import Enum
label_desc: Use image node_id 3 for calling a global function with example usage: df_to_pdf(df, engine) and returns: df, df, df