code: def test_sample_k_bigger_than_bag_size():
      seq = range(3)
      sut = db.from_sequence(seq, npartitions=3)
      # should raise: Sample larger than population or is negative
      with pytest.raises(
          ValueError, match="Sample larger than population"
      ):
          random.sample(sut, k=4).compute()
  
imports: from __future__ import annotations
  import math
  import random
  import pytest
  import dask.bag
  from dask.bag import random
label_desc: Use image node_id 9 for calling a global function with example usage: test_sample_k_bigger_than_bag_size() without return types