class_docstr: Test functionality of SkorchDoctor using a simple model
class_docstr_tok: ["Test","functionality","of","SkorchDoctor","using","a","simple","model"]
code: def mock_matplotlib_not_installed(self):
      # fixture to make it seem like matplotlib was not installed
      orig_import = __import__
  
      def import_mock(name, *args):
          if name == "matplotlib":
              # pretend that matplotlib is not installed
              raise ModuleNotFoundError("no module named 'matplotlib'")
          return orig_import(name, *args)
  
      with mock.patch("builtins.__import__", side_effect=import_mock):
          yield import_mock
  
imports: import itertools
  from unittest import mock
  import numpy
  import pytest
  import torch
  from torch import nn
label_desc: Use image node_id 25 for calling the TestSkorchDoctorSimple obj's underlying member method code with example usage: obj.mock_matplotlib_not_installed() and returns: orig_import