def save(self, path, create_dirs=False):

        path_dir, path_fname = os.path.split(path)
        if not os.path.exists(path_dir):
            try:
                os.makedirs(path_dir)
            except OSError:
                pass

        with open(path, 'wb') as out:
            out.write(self._bytes_body)
Save response body to file.
dataset/ETHPy150Open lorien/grab/grab/document.py/Document.save