code: def test_mls_inputs(self, mod):
      xp, scp = mod
  
      # can't all be zero state
      with pytest.raises(ValueError):
          scp.signal.max_len_seq(10, state=xp.zeros(10))
  
      # wrong size state
      with pytest.raises(ValueError):
          scp.signal.max_len_seq(10, state=xp.ones(3))
  
      # wrong length
      with pytest.raises(ValueError):
          scp.signal.max_len_seq(10, length=-1)
  
      assert scp.signal.max_len_seq(10, length=0)[0].size == 0
  
      # unknown taps
      with pytest.raises(ValueError):
          scp.signal.max_len_seq(64)
  
      # bad taps
      with pytest.raises(ValueError):
          scp.signal.max_len_seq(10, taps=[-1, 1])
  
imports: import cupy
  from cupy import testing
  import cupyx.scipy.signal
  import pytest
  import numpy
label_desc: Use image node_id 1 for calling the TestMLS obj's underlying member method code with example usage: obj.test_mls_inputs(mod) without return types