Suppose $Y_1,Y_2,\ldots, Y_n$ are independent, where $Y_i$ is a continuous valued random variable with a density $p_{Y_i}(y_i)$ on its domain $\mathcal{D}_i\subseteq \mathbb{R}.$ Can one show that for any continuous function $f:\mathbb{R}^n\to\mathbb{R},$ that is non-constant on $\mathcal{D}_1\times \mathcal{D}_2\times\ldots \times \mathcal{D}_n,$ we must have that $f(Y_1,Y_2,\ldots, Y_n)$ is not independent of $Y_i$ for at least one $i$?
Note: It is possible that $f(Y_1,Y_2,\ldots, Y_n)$ is independent of $Y_i$ for some $i.$ For instance, if $Y_1$ is distributed uniformly on $[0,1]$ and $Y_2,Y_3$ are normally distributed with mean 0 and variance 1, then $Z:=f(Y_1,Y_2,Y_3) = Y_1\cdot Y_2+\sqrt{1-Y_1^2}\cdot Y_3$ is independent of $Y_1.$
Note 2: One can construct counterexamples if $Y_1,Y_2,\ldots, Y_n$ are allowed to be discrete valued. For instance, if $Y_i$ is a Bernoulli random variables with parameter $\frac{1}{2},$ then $f(Y_1,Y_2,\ldots, Y_n)$ defined as the XOR of all the $Y_i$'s is independent of each $Y_i.$