code: def test_raise_error_if_call_not_implemented(self):
      class MyExtension(training.Extension):
          pass
  
      ext = MyExtension()
      trainer = testing.get_trainer_with_mock_updater()
      with pytest.raises(NotImplementedError):
          ext(trainer)
  
file_path: chainer/tests/chainer_tests/training_tests/test_extension.py
imports: import unittest
  import pytest
  from chainer import testing
  from chainer import training
label_desc: Use image node_id 1 for calling the TestExtension obj's underlying member method code with example usage: obj.test_raise_error_if_call_not_implemented() without return types