code: def test_load_and_call_graph_creation_extension(
      client_with_graph_creation_extension_loaded,
      graph_creation_extension2,
  ):
      """
      Tests calling a user-defined server-side graph creation extension from the
      cugraph_service client.
      """
      # The graph_creation_extension returns the tmp dir created which contains
      # the extension
      extension_dir = graph_creation_extension2
      client = client_with_graph_creation_extension_loaded
  
      ext_mod_names = client.load_graph_creation_extensions(
          extension_dir
      )
      assert len(ext_mod_names) == 1
      expected_mod_name = (
          Path(extension_dir) / "my_extension.py"
      ).as_posix()
      assert ext_mod_names[0] == expected_mod_name
  
      new_graph_id = client.call_graph_creation_extension(
          "my_graph_creation_function", "a", "b", "c"
      )
  
      assert new_graph_id in client.get_graph_ids()
  
      # Inspect the PG and ensure it was created from my_graph_creation_function
      # FIXME: add client APIs to allow for a more thorough test of the graph
      assert client.get_graph_info(["num_edges"], new_graph_id) == 2
  
      # Ensure the other graph creation extension (loaded as part of
      # client_with_graph_creation_extension_loaded) can still be called
      new_graph_id = client.call_graph_creation_extension(
          "custom_graph_creation_function"
      )
  
      assert new_graph_id in client.get_graph_ids()
  
imports: from collections.abc import Sequence
  from pathlib import Path
  import pytest
  from .None import data
label_desc: Use image node_id 11 for calling a global function with example usage: test_load_and_call_graph_creation_extension(client_with_graph_creation_extension_loaded, graph_creation_extension2) without return types