code: def test_bytearray(doc):
      assert m.bytearray_from_char_ssize_t().decode() == "$%"
      assert m.bytearray_from_char_size_t().decode() == "@$!"
      assert m.bytearray_from_string().decode() == "foo"
      assert m.bytearray_size() == len("foo")
  
imports: import contextlib
  import sys
  import types
  import pytest
  import env
  from pybind11_tests import detailed_error_messages_enabled
  from pybind11_tests import pytypes
label_desc: Use image node_id 20 for calling a global function with example usage: test_bytearray(doc) without return types