code: def test_return_cs_graph(self):
      pytest.importorskip("scipy")
  
      # relations = False
      csgraph_true = np.array(
          [
              [False, True, True, True, False],
              [False, False, True, True, False],
              [False, False, False, True, False],
              [False, False, False, False, True],
              [False, False, False, False, False],
          ]
      )
  
      csgraph_test = self.g.return_cs_graph(relations=False).toarray()
      csgraph_test_si = self.g_si.return_cs_graph(
          relations=False
      ).toarray()
  
      assert_allclose(csgraph_true, csgraph_test)
      assert_allclose(csgraph_true, csgraph_test_si)
  
      # relations = 'dt', dropna = True
      csgraph_true = np.array(
          [
              [0.0, 1.0, 0.0, 5.0, 0.0],
              [0.0, 0.0, 1.0, 4.0, 0.0],
              [0.0, 0.0, 0.0, 3.0, 0.0],
              [0.0, 0.0, 0.0, 0.0, 4.0],
              [0.0, 0.0, 0.0, 0.0, 0.0],
          ]
      )
  
      csgraph_test = self.g.return_cs_graph("dt", dropna=True).toarray()
      csgraph_test_si = self.g_si.return_cs_graph(
          "dt", dropna=True
      ).toarray()
  
      assert_allclose(csgraph_true, csgraph_test)
      assert_allclose(csgraph_true, csgraph_test_si)
  
      # relations = 'dt', dropna = False
      csgraph_true = np.array(
          [
              [0.0, 1.0, np.nan, 5.0, 0.0],
              [0.0, 0.0, 1.0, 4.0, 0.0],
              [0.0, 0.0, 0.0, 3.0, 0.0],
              [0.0, 0.0, 0.0, 0.0, 4.0],
              [0.0, 0.0, 0.0, 0.0, 0.0],
          ]
      )
  
      csgraph_test = self.g.return_cs_graph(
          "dt", dropna=False
      ).toarray()
      csgraph_test_si = self.g_si.return_cs_graph(
          "dt", dropna=False
      ).toarray()
  
      assert_allclose(csgraph_true, csgraph_test)
      assert_allclose(csgraph_true, csgraph_test_si)
  
      # relations = ['dx', 'dt]
      csgraph_test = self.g.return_cs_graph(["dx", "dt"], [True, False])
      assert csgraph_test["dx"].nnz == 2
      assert csgraph_test["dt"].nnz == 7
  
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 TestInterfaces obj's underlying member method code with example usage: obj.test_return_cs_graph() without return types