code: def test_exception(self):
      try:
          layer = BinaryDense(n_units=5)
          inputs = Input([4, 10, 5], name="ill_inputs")
          out = layer(inputs)
          self.fail("ill inputs")
      except Exception as e:
          print(e)
  
      try:
          layer = BinaryDense(n_units=5, use_gemm=True)
          out = layer(self.ni)
          self.fail("use gemm")
      except Exception as e:
          print(e)
  
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import *
  from tensorlayer.models import *
  from tests.utils import CustomTestCase
label_desc: Use image node_id 6 for calling the Layer_BinaryDense_Test obj's underlying member method code with example usage: obj.test_exception() without return types