code: def test_random_weights_throws_error():
      try:
          ffn.random_weights(2, (0.0, 0.25), 1.0)
          assert False
      except ValueError:
          assert True
  
      try:
          ffn.random_weights(10, (0.5, 0.25), 1.0)
          assert False
      except ValueError:
          assert True
  
      try:
          ffn.random_weights(10, (0.5, 0.75), 0.2)
          assert False
      except ValueError:
          assert True
  
imports: import ffn
  import pandas
  import numpy
  from pytest import fixture
  from numpy.testing import assert_almost_equal
label_desc: Use image node_id 29 for calling a global function with example usage: test_random_weights_throws_error() without return types