code: def _detect_bufsize(self) -> None:
      sndbuf_size = self._sock.getsockopt(
          socket.SOL_SOCKET, socket.SO_SNDBUF
      )
      rcvbuf_size = self._sock.getsockopt(
          socket.SOL_SOCKET, socket.SO_RCVBUF
      )
      self._bufsize = min(sndbuf_size, rcvbuf_size, 65536)
  
imports: import socket
  import struct
  import threading
  import time
  import uuid
  from typing import TYPE_CHECKING, Any, List, Optional
  from wandb.proto import wandb_server_pb2
  from .None import tracelog
label_desc: Use image node_id 3 for calling the SockClient obj's underlying member method code with example usage: obj._detect_bufsize() without return types