code: def test_maybe_compress_sample(compression):
      np = pytest.importorskip("numpy")
      payload = (
          np.random.randint(0, 255, size=10000).astype("u1").tobytes()
      )
      fmt, compressed = maybe_compress(payload, compression=compression)
      assert fmt is None
      assert compressed == payload
  
imports: from __future__ import annotations
  import threading
  import zlib
  from concurrent.futures import ThreadPoolExecutor
  import pytest
  import dask.config
  from distributed import Worker, wait
  from distributed.compatibility import LINUX
  from distributed.protocol import dumps, loads, maybe_compress, msgpack, to_serialize
  from distributed.protocol.compression import Compression, compressions, get_compression_settings
  from distributed.utils import nbytes
  from distributed.utils_test import gen_cluster
label_desc: Use image node_id 11 for calling a global function with example usage: test_maybe_compress_sample(compression) without return types