code: def save_session_to_file(self, sessionfile):
          
          pickle.dump(requests.utils.dict_from_cookiejar(self._session.cookies), sessionfile)
docs: Not meant to be used directly, use :meth:`Instaloader.save_session_to_file`.