def METHOD_NAME(self, write=False):
    if isinstance(self._source, str):
        if write:
            return AtomicWriteFile(
                self._source,
                uid=os_data.root_uid,
                gid=os_data.root_gid,
                perms=0o644,
            )
        return readlines_utf8(self._source, True)
    fobj = self._source.text_fileobj(writable=write)
    if write:
        fobj.seek(0, 0)
        fobj.truncate(0)
    return fobj