# Write the requested Python function here.