code: def test_randbytes_seed():
      state = random.getstate()
      try:
          random.seed(0)
          with pytest.warns(
              DeprecationWarning,
              match=r"randbytes is deprecated and will be removed in a future release; "
              r"use random\.randbytes instead\.",
          ):
              assert randbytes(8) == b"\xcd\x07,\xd8\xbeo\x9fb"
      finally:
          random.setstate(state)
  
imports: from __future__ import annotations
  import random
  from collections import Counter
  import pytest
  from distributed.compatibility import randbytes
label_desc: Use image node_id 2 for calling a global function with example usage: test_randbytes_seed() without return types