code: def test_ill(self):
      c = Cumulative()
      with self.assertRaises(TypeError):
          c.extend(None)
      with self.assertRaises(TypeError):
          c.extend([])
      with self.assertRaises(TypeError):
          c.extend(1)
      with self.assertRaises(TypeError):
          c.append([])
          c.append([1, 2])
          c.get_buffer()
      with self.assertRaises(TypeError):
          c.append(None)
          c.get_buffer()
  
file_path: MONAI/tests/test_cumulative.py
imports: from __future__ import annotations
  import unittest
  import torch
  from monai.metrics import Cumulative
  from tests.utils import assert_allclose
label_desc: Use image node_id 3 for calling the TestCumulative obj's underlying member method code with example usage: obj.test_ill() without return types