code: def test_running_of_different_dense_modes(self):
      for mode in DenseMxtsMode.vals:
          input_layer = layers.Input(batch_shape=(None, 4))
          W = np.array([self.w1, self.w2]).T
          b = np.array([-1.0, 1.0])
          dense_layer = layers.Dense(
              kernel=W, bias=b, dense_mxts_mode=mode
          )
          dense_layer.set_inputs(input_layer)
          dense_layer.build_fwd_pass_vars()
          dense_layer.set_scoring_mode(layers.ScoringMode.OneAndZeros)
          dense_layer.set_active()
          input_layer.update_mxts()
          func = compile_func(
              [
                  input_layer.get_activation_vars(),
                  input_layer.get_reference_vars(),
              ],
              input_layer.get_mxts(),
          )
          dense_layer.update_task_index(task_index=0)
          func([self.inp, np.zeros_like(self.inp)])
  
file_path: deeplift/tests/layers/test_dense.py
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
  import deeplift.layers
  from deeplift.layers import DenseMxtsMode
  from deeplift.util import compile_func
label_desc: Use image node_id 4 for calling the TestDense obj's underlying member method code with example usage: obj.test_running_of_different_dense_modes() without return types