class_docstr: Test functionality of SkorchDoctor using a simple model
class_docstr_tok: ["Test","functionality","of","SkorchDoctor","using","a","simple","model"]
code: def test_matplotlib_not_installed(
      self, mock_matplotlib_not_installed, doctor
  ):
      # Note: Unfortunately, the order of tests matters here: This test should
      # run before the ones below that use matplotlib, otherwise the import
      # mock doesn't work correctly.
      msg = (
          r"This feature requires matplotlib to be installed; "
          r"please install it first, e.g. using "
          r"\'python -m pip install matplotlib\'"
      )
      with pytest.raises(ImportError, match=msg):
          doctor.plot_loss()
  
imports: import itertools
  from unittest import mock
  import numpy
  import pytest
  import torch
  from torch import nn
label_desc: Use image node_id 26 for calling the TestSkorchDoctorSimple obj's underlying member method code with example usage: obj.test_matplotlib_not_installed(mock_matplotlib_not_installed, doctor) without return types