code: def extract_feature_(self, persistence_diagram):
      betti_curve = BettiCurve(n_jobs=1).fit_transform(
          [persistence_diagram]
      )[0]
      return np.array(
          [
              np.sum(betti_curve[i, :])
              for i in range(int(np.max(persistence_diagram[:, 2])) + 1)
          ]
      )
  
imports: from abc import ABC
  import numpy
  import pandas
  from gtda.diagrams import Scaler, Filtering, PersistenceEntropy, PersistenceLandscape, BettiCurve
  from gtda.homology import VietorisRipsPersistence
label_desc: Use image node_id 2 for calling the BettiNumbersSumFeature obj's underlying member method code with example usage: obj.extract_feature_(persistence_diagram) and returns: np