Firstly, include comments in your code. It was very difficult to read and make sense of.
Secondly, for the 'awsgluedq' package you will need to import 'runpy' on Line 1 for mainly python.
Third, 'main_code' is not defined because it is not for the package. Instead you will want to use the expression between these square brackets; [name == 'main']. NOTE: For name You will need to import 'configparsner' on an early line.
And if you need to access the main .py file. You will need to use this expression 'main.py file' for python packages.
Parts of this were sourced by some other users who assisted with this. If this is incorrect, I would ask a genuine professional.
But other than that, aside from some minor adjustments. Your mock code is well structured.