[core][py] add gc_engine_func.py