class_docstr: This test case checks end-to-end model validation performed in `.make_private`
  method. It covers performed in `ModuleValidator`, `GradSampleModule`, as well as
  their interplay
class_docstr_tok: ["This","test","case","checks","end-to-end","model","validation","performed","in","`",".make_private","`","method",".","It","covers","performed","in","`","ModuleValidator","`",",","`","GradSampleModule","`",",","as","well","as","their","interplay"]
code: def _init(self, module, size, batch_size=10):
      optim = torch.optim.SGD(module.parameters(), lr=0.1)
      dl = DataLoader(
          dataset=[torch.randn(*size) for _ in range(100)],
          batch_size=batch_size,
      )
  
      return module, optim, dl
  
file_path: opacus/opacus/tests/privacy_engine_validation_test.py
imports: import unittest
  import torch
  from opacus import PrivacyEngine
  from torch.utils.data import DataLoader
  from .utils import BasicSupportedModule, CustomLinearModule, LinearWithExtraParam, MatmulModule
label_desc: Use image node_id 2 for calling the PrivacyEngineValidationTest obj's underlying member method code with example usage: obj._init(module, size, batch_size) and returns: module,  optim,  dl