Yes the code isn’t inside of the child theme, it’s inside of the Genesis framework. You make edits/override what’s in the Genesis framework by adding it inside of the functions file of the Child Theme.
The code that I pasted is from the tutorial/code snippet link I added above. You would need to take a look at that link to see how it works.