code: def confusion(model, df, y):
      unpacked_matrix = {}
      matrix = confusion_matrix(
          model.predict(df["test"]), y["test"]
      ).tolist()
      for i, row in enumerate(matrix):
          unpacked_matrix[str(i + 1)] = list(row)
  
      return unpacked_matrix
  
file_path: nylon/nylon/analysis/analysis.py
imports: from sklearn.metrics import accuracy_score
  from sklearn.metrics import precision_score, recall_score
  from sklearn.metrics import confusion_matrix
  from sklearn.model_selection import cross_val_score
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: confusion(model, df, y) and returns: unpacked_matrix