code: def subset_X_y(X, labels, mask) -> Tuple[DatasetLike, LabelLike]:
      """Extracts subset of features/labels where mask is True"""
      labels = subset_labels(labels, mask)
      X = subset_data(X, mask)
      return X, labels
  
imports: import warnings
  import numpy
  import pandas
  from typing import Union, Tuple
  from cleanlab.typing import DatasetLike, LabelLike
  from cleanlab.internal.validation import labels_to_array
  from cleanlab.internal.constants import FLOATING_POINT_COMPARISON, TINY_VALUE
label_desc: Use image node_id 17 for calling a global function with example usage: subset_X_y(X, labels, mask) and returns: X,  labels