def METHOD_NAME(self, f, inputs):
    fname = f.info.type_name
    args = f.info.args
    if fname in ['Convolution', 'Deconvolution',
                 'BatchNormalization', 'MaxPooling',
                 'AveragePooling', 'SumPooling', 'Unpooling',
                 'Concatenate', 'Affine']:
        o = self.connect(fname, inputs, args)
        return o