My lecturer defines the mutual information: $$ I(X;Y\mid Z) = D_{KL}\big(p(X,Y\mid Z)\parallel p(X\mid Z)\;p(Y\mid Z)\big)$$ Is this correct? I feel like it doesn't really make sense to say that; instead I think it should be the expected value of this over Z.
Also, is $I(X;Y|Z)$ the same as $I(X,Y|Z)$?
Mutual information is often written $I(X;Y)=D_{KL}(p(X,Y)||p(X)p(Y))$. Your instructor has provided a slightly generalised version which depends on some other variable, $Z$.
You are free to take expectations over this. Note that if $Z$ is constant, then that leads to the usual definition.