code: def test_net_cpd(self):
      self.assertEqual(self.writer.net_cpd("asia"), "(0.01 0.99)")
      self.assertEqual(
          self.writer.net_cpd("bronc"), "((0.6 0.4)\n (0.3 0.7))"
      )
      self.assertEqual(
          self.writer.net_cpd("dysp"),
          "(((0.9 0.1)\n  (0.8 0.2))\n\n ((0.7 0.3)\n  (0.1 0.9)))",
      )
      self.assertEqual(
          self.writer.net_cpd("either"),
          "(((1.0 0.0)\n  (1.0 0.0))\n\n ((1.0 0.0)\n  (0.0 1.0)))",
      )
      self.assertEqual(
          self.writer.net_cpd("lung"), "((0.1  0.9 )\n (0.01 0.99))"
      )
      self.assertEqual(self.writer.net_cpd("smoke"), "(0.5 0.5)")
      self.assertEqual(
          self.writer.net_cpd("tub"), "((0.05 0.95)\n (0.01 0.99))"
      )
      self.assertEqual(
          self.writer.net_cpd("xray"), "((0.98 0.02)\n (0.05 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 6 for calling the TestNETWriterTorch obj's underlying member method code with example usage: obj.test_net_cpd() without return types