class_docstr: Test case for the patch module.
class_docstr_tok: ["Test","case","for","the","patch","module","."]
code: def testForward(self, _, model_builder):
      model = model_builder(self)
      fmodel = higher.patch.monkeypatch(model)
      for _ in range(10):
          inputs = torch.rand(8, 4)
          ref_outputs = model(inputs)
          outputs = fmodel(inputs)
          torch.testing.assert_allclose(outputs, ref_outputs)
  
imports: import unittest
  from parameterized import parameterized
  import torch
  from torch import nn
  import higher
label_desc: Use image node_id 4 for calling the TestPatch obj's underlying member method code with example usage: obj.testForward(_, model_builder) without return types