code: def assert_single_label_shape(y):
      if not isinstance(y, np.ndarray):
          raise DeepchecksValueError(
              f"Expected y to be numpy array instead got: {type(y)}"
          )
      if y.ndim != 1:
          raise DeepchecksValueError(
              f"Expected y to be numpy array with 1 dimension instead got {y.ndim} dimensions."
          )
      assert_binary_values(y)
  
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 3 for calling a global function with example usage: assert_single_label_shape(y) without return types