in src/azstoragetorch/io.py [0:0]
def writable(self) -> bool:
"""Return whether file-like object is writeable.
:returns: ``True`` if opened in write mode, ``False`` otherwise.
"""
if self._is_write_mode():
self._validate_not_closed()
return True
return False