code: def test_get_cross():
      buffer = sock_client.SockBuffer()
      data1 = b"0123456"
      buffer.put(data1, len(data1))
      data2 = b"abcde"
      buffer.put(data2, len(data2))
      assert buffer.length == 12
      assert buffer.get(4, 9) == b"456ab"
      assert buffer.length == 3
      assert buffer.get(0, 1) == b"c"
      assert buffer.length == 2
  
file_path: wandb/tests/pytest_tests/unit_tests/test_lib/test_sock_client.py
imports: import pytest
  from wandb.sdk.lib import sock_client
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_cross() without return types