[step:Declare the product space and the measurable subgraph indicator]
Let $(\Omega,\mathcal F,\mathbb P)$ be the probability space in the statement. Let $\mathcal B(\mathbb R)$ denote the Borel $\sigma$-algebra on $\mathbb R$, let $\mathcal B([0,\infty)):=\mathcal B(\mathbb R)|_{[0,\infty)}$ denote the Borel $\sigma$-algebra on $[0,\infty)$, and let
\begin{align*}
X:(\Omega,\mathcal F)&\to([0,\infty),\mathcal B([0,\infty)))
\end{align*}
be the given measurable map. Let $\mathcal F\otimes\mathcal B([0,\infty))$ denote the product $\sigma$-algebra on $\Omega\times[0,\infty)$, and let $\mathbb P\otimes\mathcal L^1|_{[0,\infty)}$ denote the product measure.
Define the open subset
\begin{align*}
H:=\{(x,t)\in[0,\infty)\times[0,\infty):t<x\}.
\end{align*}
Define the map
\begin{align*}
G:(\Omega\times[0,\infty),\mathcal F\otimes\mathcal B([0,\infty)))&\to([0,\infty)\times[0,\infty),\mathcal B([0,\infty))\otimes\mathcal B([0,\infty)))\\
(\omega,t)&\mapsto (X(\omega),t).
\end{align*}
The first coordinate of $G$ is $X$ composed with the projection $\Omega\times[0,\infty)\to\Omega$, and the second coordinate is the projection $\Omega\times[0,\infty)\to[0,\infty)$; both are measurable, so $G$ is measurable. Hence the set
\begin{align*}
A:=G^{-1}(H)=\{(\omega,t)\in\Omega\times[0,\infty):t<X(\omega)\}
\end{align*}
belongs to $\mathcal F\otimes\mathcal B([0,\infty))$. Define its indicator function
\begin{align*}
\mathbb 1_A:\Omega\times[0,\infty)&\to\{0,1\}\\
(\omega,t)&\mapsto
\begin{cases}
1,&(\omega,t)\in A,\\
0,&(\omega,t)\notin A.
\end{cases}
\end{align*}
Then $\mathbb 1_A$ is a nonnegative measurable function on the product measure space.
[/step]