code: def test_zipf_rv():
      r = zipf_rv(2.3, xmin=2, seed=1)
      r = zipf_rv(2.3, 2, 1)
      r = zipf_rv(2.3)
      assert type(r), int
      pytest.raises(ValueError, zipf_rv, 0.5)
      pytest.raises(ValueError, zipf_rv, 2, xmin=0)
  
imports: import pytest
  from networkx.utils import powerlaw_sequence, random_weighted_sample, weighted_choice, zipf_rv
label_desc: Use image node_id 2 for calling a global function with example usage: test_zipf_rv() without return types