If $Y$ is separable and $f : X \to Y$ is Borel measurable, then the graph of $f$ is Borel.
On page 14, Lemma 2.3, (iii) of this online note, given, $\{U_n\}_{n \in \Bbb N}$, a basis for the topology of a metrisable space $Y$, the graph of $f$ is:
I can't see why this formula represents the graph of $f$. It seems to me it's an empty set.