code: def testSetDiscount(self):
      self.dlm6._setDiscounts([0.0, 0.1, 0.2], False)
      self.assertTrue(0.0 in self.dlm6.builder.discount)
      self.assertTrue(0.1 in self.dlm6.builder.discount)
      self.assertTrue(0.2 in self.dlm6.builder.discount)
      self.assertTrue(0.9 not in self.dlm6.builder.discount)
      self.assertTrue(0.8 not in self.dlm6.builder.discount)
      self.assertTrue(1.0 not in self.dlm6.builder.discount)
  
      self.assertAlmostEqual(
          self.dlm6.builder.staticComponents["trend"].discount, 0.9
      )
  
      self.dlm6._setDiscounts([0.0, 0.1, 0.2], True)
      self.assertTrue(
          self.dlm6.builder.staticComponents["trend"].discount
          in [0.0, 0.1, 0.2]
      )
  
file_path: pydlm/tests/tuner/test_dlmTune.py
imports: import unittest
  from pydlm.modeler.trends import trend
  from pydlm.modeler.seasonality import seasonality
  from pydlm.modeler.autoReg import autoReg
  from pydlm.tuner._dlmTune import _dlmTune
label_desc: Use image node_id 4 for calling the test_dlmTune obj's underlying member method code with example usage: obj.testSetDiscount() without return types