code: def test_strings():
      str_obj = "abcd" * 1024
      obj = [str_obj, str_obj]
      header, bufs = serialize(obj)
      assert len(header) < len(str_obj) * 2
      bufs = [memoryview(buf) for buf in bufs]
      assert obj == deserialize(header, bufs)
  
imports: import threading
  from collections import defaultdict, OrderedDict
  from typing import Any, Dict, List, Tuple
  import numpy
  import pandas
  import pytest
  from ...lib.sparse import SparseMatrix
  from ...tests.core import require_cupy, require_cudf
  from ...utils import lazy_import
  from ..None import serialize, serialize_with_spawn, deserialize
  from ..core import Placeholder, ListSerializer
label_desc: Use image node_id 2 for calling a global function with example usage: test_strings() without return types