code: def test_sp_random_seed():
      init = root_seed()
      seed = run_sp(_get_seed)
      # we should spawn a seed for the worker
      assert seed.entropy == init.entropy
      assert seed.spawn_key == (init.n_children_spawned - 1,)
  
imports: import os
  import logging
  import multiprocessing
  import numpy
  import pytest
  from seedbank import root_seed
  from lenskit.util.parallel import invoker, proc_count, run_sp, is_worker, is_mp_worker
  from lenskit.util.test import set_env_var
  from lenskit.sharing import persist, SHM_AVAILABLE
  from pytest import mark, raises, approx
label_desc: Use image node_id 17 for calling a global function with example usage: test_sp_random_seed() without return types