code: def __init__(
      self,
      func,
      n_chns,
      kernels,
      w_initializer=None,
      w_regularizer=None,
      with_downsample_branch=False,
      acti_func="leakyrelu",
      name="UNet_block",
  ):
      super(UNetBlock, self).__init__(name=name)
  
      self.func = look_up_operations(func.upper(), SUPPORTED_OP)
  
      self.kernels = kernels
      self.n_chns = n_chns
      self.with_downsample_branch = with_downsample_branch
      self.acti_func = acti_func
  
      self.initializers = {"w": w_initializer}
      self.regularizers = {"w": w_regularizer}
  
file_path: NiftyNet/niftynet/network/no_new_net.py
imports: from __future__ import absolute_import, print_function
  from niftynet.layer import layer_util
  from niftynet.layer.base_layer import TrainableLayer
  from niftynet.layer.convolution import ConvolutionalLayer
  from niftynet.layer.deconvolution import DeconvolutionalLayer
  from niftynet.layer.downsample import DownSampleLayer
  from niftynet.layer.elementwise import ElementwiseLayer
  from niftynet.layer.crop import CropLayer
  from niftynet.layer.linear_resize import LinearResizeLayer
  from niftynet.utilities.util_common import look_up_operations
label_desc: Use image node_id 1 to create a new UNetBlock object from inherited base classes: TrainableLayer with example: obj = UNetBlock(func, n_chns, kernels, w_initializer, w_regularizer, with_downsample_branch, acti_func, name)