code: def get_ignored_labels_mask(y, ignored_label_value):
      if isinstance(y, csr_matrix):
          return np.array(
              [
                  (row.toarray() == ignored_label_value).any()
                  for row in y
              ]
          )
      else:
          return y == np.array([ignored_label_value])
  
file_path: small-text/small_text/utils/labels.py
imports: import numpy
  from scipy.sparse import csr_matrix
  from scipy.sparse import vstack
  from small_text.base import LABEL_UNLABELED
  from small_text.utils.annotations import deprecated
label_desc: Use image node_id 3 for calling a global function with example usage: get_ignored_labels_mask(y, ignored_label_value) and returns: np, unknown