Fix code order in create_instances.py (#2328)

1 file changed