code: def fit(self, X, y=None):
      super(OneClassSVM, self).fit(X, np.ones(_num_samples(X)))
  
imports: from sklearn.base import BaseEstimator
  from sklearn.base import RegressorMixin, ClassifierMixin
  import numpy
  import scipy.sparse
  from sklearn.utils import check_X_y, column_or_1d, check_array
  from sklearn.utils.validation import _num_samples
  from ctypes import *
  from os import path, curdir
  from sys import platform
label_desc: Use image node_id 2 for calling the OneClassSVM obj's underlying member method code with example usage: obj.fit(X, y) without return types