Two people label the same 100 items and agree on 90 of them. Impressive? Not necessarily — if 90% of the items are the same boring category, two people who both just guess "boring" every time would also agree about 90% of the time.
Cohen's kappa strips out that free agreement:
Task: write cohens_kappa(rater_a, rater_b) returning kappa, rounded to 4 decimal places.
Read the result as "how much of the available room above chance did they actually capture". 1.0 is perfect agreement; 0.0 means they did no better than chance; and negative values are real — they mean the two raters disagree more than random labelling would.
Once your code passes every test, a reference solution shows up here so you can compare it with yours.