code: def test_get_cpds(self):
      cpds = self.writer.get_cpds()
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["asia"], decimals=2),
          np.array([0.01, 0.99]),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["bronc"], decimals=2),
          np.array([[0.6, 0.3], [0.4, 0.7]]),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["dysp"], decimals=2),
          np.array(
              [[[0.9, 0.8], [0.7, 0.1]], [[0.1, 0.2], [0.3, 0.9]]]
          ),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["either"], decimals=2),
          np.array(
              [[[1.0, 1.0], [1.0, 0.0]], [[0.0, 0.0], [0.0, 1.0]]]
          ),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["lung"], decimals=2),
          np.array([[0.1, 0.01], [0.9, 0.99]]),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["smoke"], decimals=2),
          np.array([0.5, 0.5]),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["tub"], decimals=2),
          np.array([[0.05, 0.01], [0.95, 0.99]]),
      )
      np.testing.assert_array_equal(
          compat_fns.to_numpy(cpds["xray"], decimals=2),
          np.array([[0.98, 0.05], [0.02, 0.95]]),
      )
  
imports: import unittest
  import numpy
  from pgmpy import config
  from pgmpy.readwrite import NETReader, NETWriter
  from pgmpy.utils import compat_fns, get_example_model
label_desc: Use image node_id 5 for calling the TestNETWriterTorch obj's underlying member method code with example usage: obj.test_get_cpds() without return types