and the corresponding Python function is