code: def create_folder(cls, name, parent=None, project=None,
                        api=None):
          
          api = api or cls._API
  
          data = {
              'name': name,
              'type': cls.FOLDER_TYPE
          }
  
          if not parent and not project:
              raise SbgError('Parent or project must be provided')
  
          if parent and project:
              raise SbgError(
                  'Providing both "parent" and "project" is not allowed'
              )
  
          if parent:
              data['parent'] = Transform.to_file(file_=parent)
  
          if project:
              data['project'] = Transform.to_project(project=project)
  
          response = api.post(url=cls._URL['create_folder'], data=data).json()
          return cls(api=api, **response)
docs: Create a new folder
          :param name: Folder name
          :param parent: Parent folder
          :param project: Project to create folder in
          :param api: Api instance
          :return: New folder