code: def compute_matthew_corr(confusion_matrix: np.ndarray) -> float:
      assert confusion_matrix.shape == (
          2,
          3,
      ), f"Got shape: {confusion_matrix.shape}"
      r = confusion_matrix[:, :2]
      r[:, 0] += confusion_matrix[:, 2]
      return (r[1, 1] * r[0, 0] - r[1, 0] * r[0, 1]) / np.sqrt(
          r[1, :].sum() * r[0, :].sum() * r[:, 0].sum() * r[:, 1].sum()
      )
  
file_path: evals/evals/metrics.py
imports: import random
  from typing import Optional, Sequence, Set
  import numpy
  from evals.record import Event
label_desc: Use image node_id 4 for calling a global function with example usage: compute_matthew_corr(confusion_matrix) and returns: unknown