code: def test_drop_edge_attrs_direct(categorical_metadata):
      h = cugraph.hypergraph(
          simple_df,
          ["id", "a1", "🙈"],
          direct=True,
          drop_edge_attrs=True,
          EDGES={"id": ["a1"], "a1": ["🙈"]},
          categorical_metadata=categorical_metadata,
      )
  
      assert len(h.keys()) == len(
          ["entities", "nodes", "edges", "events", "graph"]
      )
  
      edges = cudf.DataFrame.from_pandas(
          pd.DataFrame(
              {
                  "event_id": [
                      "event_id::0",
                      "event_id::1",
                      "event_id::2",
                      "event_id::0",
                      "event_id::1",
                      "event_id::2",
                  ],
                  "edge_type": [
                      "a1::🙈",
                      "a1::🙈",
                      "a1::🙈",
                      "id::a1",
                      "id::a1",
                      "id::a1",
                  ],
                  "src": [
                      "a1::1",
                      "a1::2",
                      "a1::3",
                      "id::a",
                      "id::b",
                      "id::c",
                  ],
                  "dst": [
                      "🙈::æski ēˈmōjē",
                      "🙈::😋",
                      "🙈::s",
                      "a1::1",
                      "a1::2",
                      "a1::3",
                  ],
              }
          )
      )
  
      if categorical_metadata:
          edges = edges.astype({"edge_type": "category"})
  
      assert_frame_equal(edges, h["edges"], check_dtype=False)
  
      for k, v in [
          ("entities", 9),
          ("nodes", 9),
          ("edges", 6),
          ("events", 0),
      ]:
          assert len(h[k]) == v
  
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 7 for calling a global function with example usage: test_drop_edge_attrs_direct(categorical_metadata) without return types