code: def test_str_2_list(self):
      for i in ("1,2,3", "1, 2, 3", "1,2e-0,3.0", [1, 2, 3]):
          self.assertEqual(str2list(i), [1, 2, 3])
      for i in ("1,2,3", "1,2,3,4.3", [1, 2, 3, 4.001]):
          self.assertNotEqual(str2list(i), [1, 2, 3, 4])
      for bad_value in ((1, 3), int):
          self.assertIsNone(str2list(bad_value, raise_exc=False))
          with self.assertRaises(ValueError):
              self.assertIsNone(str2list(bad_value))
  
imports: from __future__ import annotations
  import unittest
  from monai.utils.misc import str2list
label_desc: Use image node_id 1 for calling the TestStr2List obj's underlying member method code with example usage: obj.test_str_2_list() without return types