Writing Code to Assess Geometric Reasoning