code: def test_raise_error_nlevel_exceed_shape():
      with pytest.raises(error.BadInputError) as e:
          randc(shape=(2, 2))
      expected = "nlevel exceeds the size of desired dataset. Please decrease the nlevel or increase the shape"
      assert str(e.value) == expected
  
imports: import numpy
  import pytest
  from impyute.dataset.base import randc
  from impyute.ops import error
label_desc: Use image node_id 1 for calling a global function with example usage: test_raise_error_nlevel_exceed_shape() without return types