code: def test_too_large_density(self):
      for sp in (scipy.sparse, sparse):
          with pytest.raises(ValueError):
              sp.random(3, 4, density=1.1)
  
imports: import functools
  import re
  from unittest import mock
  import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy.cuda import runtime
  from cupyx.scipy import sparse
  from cupyx.scipy.sparse import _construct
label_desc: Use image node_id 2 for calling the TestRandomInvalidArgument obj's underlying member method code with example usage: obj.test_too_large_density() without return types