code: def assert_binary_values(y):
      invalid = set(np.unique(y)) - {0, 1}
      if invalid:
          raise DeepchecksValueError(
              f"Expected y to be a binary matrix with only 0 and 1 but got values: {invalid}"
          )
  
file_path: deepchecks/deepchecks/tabular/metric_utils/additional_classification_metrics.py
imports: from typing import Union
  import numpy
  from sklearn.metrics import confusion_matrix, roc_auc_score
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.metrics import averaging_mechanism
label_desc: Use image node_id 1 for calling a global function with example usage: assert_binary_values(y) without return types