code: def test_n_edges(self):
      se_true = pd.DataFrame(
          {"larger_than": [False, True], "same_color": [3, 0]}
      )
      se_true.set_index("larger_than", inplace=True)
  
      se_test = g.partition_edges(
          relations="larger_than",
          relation_funcs={"same_color": "sum"},
          n_edges=False,
      )
  
      assert_frame_equal(se_test, se_true)
  
imports: import pytest
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal
  from numpy.testing import assert_allclose
  from deepgraph import DeepGraph
label_desc: Use image node_id 5 for calling the TestPartitionEdges obj's underlying member method code with example usage: obj.test_n_edges() without return types