code: def test_get_partial():
      buffer = sock_client.SockBuffer()
      data1 = b"012345678"
      buffer.put(data1, len(data1))
      data2 = b"abcdef"
      buffer.put(data2, len(data2))
      assert buffer.length == 15
      assert buffer.get(2, 5) == b"234"
      assert buffer.length == 10
      assert buffer.get(1, 4) == b"678"
  
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 7 for calling a global function with example usage: test_get_partial() without return types