Let's say I am trying to find the commutator of operators $\mathbf{A}$ and $\mathbf{B}$, and I get $$[\mathbf{A},\mathbf{B}]=\nabla^2 f(x,y,z).\tag{0}$$
There seems to be some ambiguity here.
In operator notation, which usually does not include the test function $g$, what is the notational standard used to distinguish
$$[\mathbf{A},\mathbf{B}] g = \nabla^2 (f(x,y,z)g)\tag{1}$$
and
$$[\mathbf{A},\mathbf{B}] g = (\nabla^2 f(x,y,z))g\tag{2}$$
where $g$ depends on $x$, $y$, and $z$?