code: def test_randbytes():
      with pytest.warns(
          DeprecationWarning,
          match=r"randbytes is deprecated and will be removed in a future release; "
          r"use random\.randbytes instead\.",
      ):
          x = randbytes(256_000)
      assert isinstance(x, bytes)
      assert len(x) == 256_000
      c = Counter(x)
      for i in range(256):
          assert 800 < c[i] < 1200, (i, c[i])
  
imports: from __future__ import annotations
  import random
  from collections import Counter
  import pytest
  from distributed.compatibility import randbytes
label_desc: Use image node_id 1 for calling a global function with example usage: test_randbytes() without return types