code: def test_SGGraph_create_from_cudf():
      """
      Smoke test to ensure an SGGraph can be created from a cuDF DataFrame
      without raising exceptions, crashing, etc. This currently does not assert
      correctness of the graph in any way.
      """
      # FIXME: other PLC tests are using cudf so this does not add a new dependency,
      # however, PLC tests should consider having fewer external dependencies, meaning
      # this and other tests would be changed to not use cudf.
      import cudf
  
      # Importing this cugraph class seems to cause a crash more reliably (2023-01-22)
      # from cugraph.structure.graph_implementation import simpleGraphImpl
      from pylibcugraph import (
          ResourceHandle,
          GraphProperties,
          SGGraph,
      )
  
      edgelist = cudf.DataFrame(
          {
              "src": [0, 1, 2],
              "dst": [1, 2, 4],
              "wgt": [0.0, 0.1, 0.2],
          }
      )
  
      graph_props = GraphProperties(
          is_multigraph=False, is_symmetric=False
      )
  
      plc_graph = SGGraph(
          resource_handle=ResourceHandle(),
          graph_properties=graph_props,
          src_or_offset_array=edgelist["src"],
          dst_or_index_array=edgelist["dst"],
          weight_array=edgelist["wgt"],
          edge_id_array=None,
          edge_type_array=None,
          store_transposed=False,
          renumber=False,
          do_expensive_check=True,
          input_array_format="COO",
      )
      print("done", flush=True)
      print(f"created SGGraph {plc_graph=}", flush=True)
  
imports: import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_SGGraph_create_from_cudf() without return types