class_docstr: Test functionality of SkorchDoctor using a simple model
class_docstr_tok: ["Test","functionality","of","SkorchDoctor","using","a","simple","model"]
code: def test_plot_not_fitted_raises(
      self, plt, doctor_cls, net_cls, module_cls
  ):
      # testing only one of the plotting functions, but all support it
      from skorch.exceptions import NotInitializedError
  
      doctor = doctor_cls(net_cls(module_cls))
      msg = (
          r"SkorchDoctor is not initialized yet. Call 'fit\(X, y\) before using this "
          "method."
      )
      with pytest.raises(NotInitializedError, 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 28 for calling the TestSkorchDoctorSimple obj's underlying member method code with example usage: obj.test_plot_not_fitted_raises(plt, doctor_cls, net_cls, module_cls) without return types