def METHOD_NAME(self, request, *args, **kwargs):
    self.check_permissions(request, "import_project", None)
    token = request.DATA.get('token', None)
    project_id = request.DATA.get('project', None)
    if not project_id:
        raise exc.WrongArguments(_("The project param is needed"))
    template = request.DATA.get('template', "scrum")
    items_type = "user_stories"
    if template == "issues":
        items_type = "issues"
        template = "scrum"
    options = {
        "name": request.DATA.get('name', None),
        "description": request.DATA.get('description', None),
        "template": template,
        "type": items_type,
        "users_bindings": resolve_users_bindings(request.DATA.get("users_bindings", {})),
        "keep_external_reference": request.DATA.get("keep_external_reference", False),
        "is_private": request.DATA.get("is_private", False),
    }
    if settings.CELERY_ENABLED:
        task = tasks.METHOD_NAME.delay(request.user.id, token, project_id, options)
        return response.Accepted({"task_id": task.id})
    importer = GithubImporter(request.user, token)
    project = importer.METHOD_NAME(project_id, options)
    project_data = {
        "slug": project.slug,
        "my_permissions": ["view_us"],
        "is_backlog_activated": project.is_backlog_activated,
        "is_kanban_activated": project.is_kanban_activated,
    }
    return response.Ok(project_data)