code: def test_host_array():
      a = host_array(5)
      a[:3] = b"abc"
      a[3:] = b"de"
      assert bytes(a) == b"abcde"
  
imports: from __future__ import annotations
  import pytest
  from distributed.protocol.utils import host_array, host_array_from_buffers
label_desc: Use image node_id 1 for calling a global function with example usage: test_host_array() without return types