def insert_folder(self, title, parent_id):
        body = {
            'title': title,
            'mimeType': 'application/vnd.google-apps.folder'
        }

        # Set the parent folder.
        if parent_id:
            body['parents'] = [{'id': parent_id}]

        try:
            folder = self._service.files().insert(
                body=body).execute()
            return folder
        except errors.HttpError:
            logger.exception('An error while creating a folder.')
            return None
Insert new folder.
dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/google_apps/service.py/Service.insert_folder