code: def test_fprop_pos_and_neg_contribs(self):
      conv_layer = layers.Conv1D(
          kernel=self.conv_W,
          bias=self.conv_b,
          stride=1,
          padding=PaddingMode.valid,
          conv_mxts_mode="Linear",
      )
      self.create_small_net_with_conv_layer(
          conv_layer, outputs_per_channel=3
      )
      (
          pos_contribs,
          neg_contribs,
      ) = self.conv_layer.get_pos_and_neg_contribs()
      func_pos = compile_func(
          [
              self.input_layer.get_activation_vars(),
              self.input_layer.get_reference_vars(),
          ],
          pos_contribs,
      )
      func_neg = compile_func(
          [
              self.input_layer.get_activation_vars(),
              self.input_layer.get_reference_vars(),
          ],
          neg_contribs,
      )
      # diff from ref:
      #      [[[-9,-8,-7,-6],
      #        [-5,-4,-3,-2]],
      #       [[-1, 0, 1, 2],
      #        [ 3, 4, 5, 6]]]
      # W:
      # [-2,-1
      #   0, 1]
      # 18+8 = 26, -4 = -4
      # 0+-1+0+5 = 4 - bias (1.0) = 3
      np.testing.assert_almost_equal(
          func_pos([self.inp, np.ones_like(self.inp)]),
          np.array(
              [[[26, 23, 20], [4, 3, 2]], [[6, 5, 6], [0, 1, 4]]]
          ).transpose(0, 2, 1),
      )
      np.testing.assert_almost_equal(
          func_neg([self.inp, np.ones_like(self.inp)]),
          np.array(
              [
                  [[-4, -3, -2], [-26, -23, -20]],
                  [[0, -1, -4], [-6, -5, -6]],
              ]
          ).transpose(0, 2, 1),
      )
  
imports: from __future__ import division
  from __future__ import print_function
  from __future__ import absolute_import
  import unittest
  from unittest import skip
  import sys
  import os
  import numpy
  import deeplift.layers
  from deeplift.layers import DenseMxtsMode
  from deeplift.layers.convolutional import PoolMode, PaddingMode
  from deeplift.util import compile_func
  import itertools
label_desc: Use image node_id 4 for calling the TestConv obj's underlying member method code with example usage: obj.test_fprop_pos_and_neg_contribs() without return types