def METHOD_NAME(
    self, perm_ctx: TemplatesetPermCtx, cluster_id: str, namespace: str, raise_exception: bool = True
) -> bool:
    """校验是否有权限实例化到指定命名空间下"""
    self.can_instantiate(perm_ctx, raise_exception)
    namespace_scoped_perm_ctx = NamespaceScopedPermCtx(
        username=perm_ctx.username,
        project_id=perm_ctx.project_id,
        cluster_id=cluster_id,
        name=namespace,
    )
    return NamespaceScopedPermission().can_use(namespace_scoped_perm_ctx, raise_exception)