code: def test_load_call_unload_testing_extensions():
      """ """
      from cugraph_service_server.cugraph_handler import CugraphHandler
  
      handler = CugraphHandler()
      num_loaded = handler.load_graph_creation_extensions(
          "cugraph_service_server.testing.benchmark_server_extension"
      )
      assert len(num_loaded) == 1
  
      gid1 = handler.call_graph_creation_extension(
          "create_graph_from_builtin_dataset", "('karate',)", "{}"
      )
      scale = 2
      edgefactor = 2
      gid2 = handler.call_graph_creation_extension(
          "create_graph_from_rmat_generator",
          "()",
          f"{{'scale': {scale}, 'num_edges': {(scale**2) * edgefactor}, "
          "'seed': 42, 'mg': False}",
      )
      assert gid1 != gid2
  
      graph_info1 = handler.get_graph_info(keys=[], graph_id=gid1)
      # since the handler returns a dictionary of objs used byt her serialization
      # code, convert each item to a native python type for easy checking.
      graph_info1 = {
          k: v.get_py_obj() for (k, v) in graph_info1.items()
      }
      assert graph_info1["num_vertices"] == 34
      assert graph_info1["num_edges"] == 78
      graph_info2 = handler.get_graph_info(keys=[], graph_id=gid2)
      graph_info2 = {
          k: v.get_py_obj() for (k, v) in graph_info2.items()
      }
      assert graph_info2["num_vertices"] <= 4
      assert graph_info2["num_edges"] <= 8
  
file_path: cugraph/python/cugraph-service/tests/test_cugraph_handler.py
imports: import sys
  import pickle
  from pathlib import Path
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_load_call_unload_testing_extensions() without return types