4d44786
Deprecate helper function `is_socket`. The function incorrectly causes `ValueError` when the file object is already closed. Migrate to the new `is_socket_file` helper function instead.