class_docstr: generic wrapper around conv-layers to avoid 2D vs. 3D distinguishing in code.
code: def __init__(self, dim):
      self.dim = dim
  
imports: import numpy
  import scipy.misc
  import scipy.ndimage
  import torch
  from torch.autograd import Variable
  import torch.nn
label_desc: Use image node_id 1 to create a new NDConvGenerator object from inherited base classes: object with example: obj = NDConvGenerator(dim)