How to use TrialHandlerExt function in builder interface?

If this template helps then use it. If not then just delete and start from scratch.

OS : mac 13.4 (22F66)
PsychoPy version (e.g. 1.84.x): 2023.2.1
Standard Standalone? (y/n) Y
What are you trying to achieve?:
I want to use the TrialHandlerExt function in the builder interface to create an oddball program.
https://psychopy.org/api/data.html#psychopy.data.TrialHandlerExt
What did you try to make it work?:
I tried using the code component, but I am not very good at using the code component at the loop level of the builder.