code: def test_hyperedges_direct_categories():
      h = cugraph.hypergraph(
          hyper_df,
          direct=True,
          categories={
              "aa": "N",
              "bb": "N",
              "cc": "N",
          },
      )
  
      assert len(h["edges"]) == 9
      assert len(h["nodes"]) == 6
  
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 4 for calling a global function with example usage: test_hyperedges_direct_categories() without return types