in python/src/PythonInputStream.h [25:28]
bool isReadableFileLike(py::object fileLike) { return py::hasattr(fileLike, "read") && py::hasattr(fileLike, "seek") && py::hasattr(fileLike, "tell") && py::hasattr(fileLike, "seekable"); }