code: def remove_classes(X, label, valid_classes):
      X = X[X[label].isin(valid_classes)]
      return X
  
file_path: autogluon/core/src/autogluon/core/data/cleaner.py
imports: import logging
  from pandas import DataFrame
  from autogluon.core.constants import BINARY, MULTICLASS, QUANTILE, REGRESSION
label_desc: Use image node_id 5 for calling the CleanerMulticlass obj's underlying member method code with example usage: obj.remove_classes(X, label, valid_classes) and returns: X