code: def test_peek():
      buffer = sock_client.SockBuffer()
      data1 = b"123456"
      buffer.put(data1, len(data1))
      assert buffer.length == 6
      assert buffer.peek(2, 5) == b"345"
      assert buffer.length == 6
  
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 2 for calling a global function with example usage: test_peek() without return types