code: def handler_with_karate_edgelist_loaded(mg_handler):
      """
      Loads the karate CSV into the default graph in the handler.
      """
      from cugraph_service_client import defaults
  
      test_data = data.edgelist_csv_data["karate"]
  
      # Ensure the handler starts with no graphs in memory
      for gid in mg_handler.get_graph_ids():
          mg_handler.delete_graph(gid)
  
      mg_handler.load_csv_as_edge_data(
          test_data["csv_file_name"],
          delimiter=" ",
          dtypes=test_data["dtypes"],
          header=None,
          vertex_col_names=["0", "1"],
          type_name="",
          property_columns=[],
          names=[],
          edge_id_col_name="",
          graph_id=defaults.graph_id,
      )
      assert mg_handler.get_graph_ids() == [0]
  
      yield (mg_handler, test_data)
  
      for gid in mg_handler.get_graph_ids():
          mg_handler.delete_graph(gid)
  
file_path: cugraph/python/cugraph-service/tests/test_mg_cugraph_handler.py
imports: import os
  from pathlib import Path
  import pickle
  import pytest
  from .None import data
label_desc: Use image node_id 2 for calling a global function with example usage: handler_with_karate_edgelist_loaded(mg_handler) without return types