code: def test_random_weighted_choice():
      mapping = {"a": 10, "b": 0}
      c = weighted_choice(mapping, seed=1)
      c = weighted_choice(mapping)
      assert c == "a"
  
imports: import pytest
  from networkx.utils import powerlaw_sequence, random_weighted_sample, weighted_choice, zipf_rv
label_desc: Use image node_id 4 for calling a global function with example usage: test_random_weighted_choice() without return types