code: def test_experiment_log_confusion_matrix():
      tracker = SQLiteTracker(":memory:")
      experiment = tracker.new_experiment()
      experiment.log_confusion_matrix([1, 1, 0, 0], [1, 0, 1, 0])
  
      retrieved = tracker.get(experiment.uuid)
  
      # this will force unserialization
      assert tracker.query(
          """
  SELECT  json_extract(parameters, '$.confusion_matrix') AS cm
  FROM experiments
  """,
          as_frame=False,
          render_plots=True,
      )._repr_html_()
  
      assert retrieved["confusion_matrix"]
      assert len(tracker) == 1
  
imports: import json
  from uuid import uuid4
  import time
  import pytest
  from sklearn_evaluation.tracker import SQLiteTracker
  from sklearn_evaluation import tracker
  from sklearn_evaluation import plot
label_desc: Use image node_id 22 for calling a global function with example usage: test_experiment_log_confusion_matrix() without return types