code: def test_relation(self):
      se_true = pd.DataFrame(
          {"larger_than": [False, True], "n_edges": [5, 2]}
      )
      se_true.set_index("larger_than", inplace=True)
  
      se_test = g.partition_edges("larger_than")
  
      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 1 for calling the TestPartitionEdges obj's underlying member method code with example usage: obj.test_relation() without return types