code: def fit(self, X, y):
      if self.multi_class:
          self.n_classes_ = len(set(y))
      else:
          self.n_classes_ = 1
  
      build_callable = lambda: self.build_function(
          X.shape[1], self.n_classes_
      )
      keras_params = copy(self.keras_params)
      keras_params["build_fn"] = build_callable
  
      self.classifier_ = KerasClassifier(**keras_params)
      self.classifier_.fit(X, y)
  
file_path: scikit-multilearn/skmultilearn/ext/keras.py
imports: from keras.wrappers.scikit_learn import KerasClassifier
  from sklearn.base import BaseEstimator
  from copy import copy
label_desc: Use image node_id 2 for calling the Keras obj's underlying member method code with example usage: obj.fit(X, y) without return types