https://github.com/silvxlabs/DripTorch/blob/094058bba8884626b7287b1776d7c359ffa18e34/driptorch/io.py#L175