class_docstr: Test functionality of SkorchDoctor using a simple model
class_docstr_tok: ["Test","functionality","of","SkorchDoctor","using","a","simple","model"]
code: def test_param_update_recs_values(self, doctor):
      recs = doctor.param_update_recs_["module"]
      assert all(np.isscalar(val) for d in recs for val in d.values())
  
      # for the very first batch, before any update, we actually know that the
      # updates must be 0 because the gradients are 0.
      batch0 = recs[0]
      assert np.isclose(batch0["lin0.weight"], 0)
      assert np.isclose(batch0["lin0.bias"], 0)
  
imports: import itertools
  from unittest import mock
  import numpy
  import pytest
  import torch
  from torch import nn
label_desc: Use image node_id 14 for calling the TestSkorchDoctorSimple obj's underlying member method code with example usage: obj.test_param_update_recs_values(doctor) without return types