mock set_pincode_by_id function