code: def test_hyperedges_direct():
      h = cugraph.hypergraph(hyper_df, direct=True)
  
      assert len(h["edges"]) == 9
      assert len(h["nodes"]) == 9
  
imports: import datetime
  import pandas
  import pytest
  import cudf
  from cudf.testing.testing import assert_frame_equal
  import cugraph
label_desc: Use image node_id 3 for calling a global function with example usage: test_hyperedges_direct() without return types