class_docstr: Test RDKitDescriptors.
code: def test_with_custom_descriptors(self):
      # these are the properties used in grover
      grover_props = [
          "fr_Al_COO",
          "fr_Al_OH",
          "fr_Al_OH_noTert",
          "fr_ArN",
          "fr_Ar_COO",
          "fr_Ar_N",
          "fr_Ar_NH",
          "fr_Ar_OH",
          "fr_COO",
          "fr_COO2",
          "fr_C_O",
          "fr_C_O_noCOO",
          "fr_C_S",
          "fr_HOCCN",
          "fr_Imine",
          "fr_NH0",
          "fr_NH1",
          "fr_NH2",
          "fr_N_O",
          "fr_Ndealkylation1",
          "fr_Ndealkylation2",
          "fr_Nhpyrrole",
          "fr_SH",
          "fr_aldehyde",
          "fr_alkyl_carbamate",
          "fr_alkyl_halide",
          "fr_allylic_oxid",
          "fr_amide",
          "fr_amidine",
          "fr_aniline",
          "fr_aryl_methyl",
          "fr_azide",
          "fr_azo",
          "fr_barbitur",
          "fr_benzene",
          "fr_benzodiazepine",
          "fr_bicyclic",
          "fr_diazo",
          "fr_dihydropyridine",
          "fr_epoxide",
          "fr_ester",
          "fr_ether",
          "fr_furan",
          "fr_guanido",
          "fr_halogen",
          "fr_hdrzine",
          "fr_hdrzone",
          "fr_imidazole",
          "fr_imide",
          "fr_isocyan",
          "fr_isothiocyan",
          "fr_ketone",
          "fr_ketone_Topliss",
          "fr_lactam",
          "fr_lactone",
          "fr_methoxy",
          "fr_morpholine",
          "fr_nitrile",
          "fr_nitro",
          "fr_nitro_arom",
          "fr_nitro_arom_nonortho",
          "fr_nitroso",
          "fr_oxazole",
          "fr_oxime",
          "fr_para_hydroxylation",
          "fr_phenol",
          "fr_phenol_noOrthoHbond",
          "fr_phos_acid",
          "fr_phos_ester",
          "fr_piperdine",
          "fr_piperzine",
          "fr_priamide",
          "fr_prisulfonamd",
          "fr_pyridine",
          "fr_quatN",
          "fr_sulfide",
          "fr_sulfonamd",
          "fr_sulfone",
          "fr_term_acetylene",
          "fr_tetrazole",
          "fr_thiazole",
          "fr_thiocyan",
          "fr_thiophene",
          "fr_unbrch_alkane",
          "fr_urea",
      ]
      smiles = "CCC(=O)"
      featurizer = RDKitDescriptors(
          descriptors=grover_props, labels_only=True
      )
      features = featurizer.featurize(smiles)[0]
      assert len(features) == len(grover_props)
      assert (
          sum(features) == 3
      )  # expected number of functional groups in CCC(=O)
      assert (np.where(features == 1)[0] == (10, 11, 23)).all()
  
file_path: deepchem/deepchem/feat/tests/test_rdkit_descriptors.py
imports: import numpy
  import unittest
  from deepchem.feat import RDKitDescriptors
label_desc: Use image node_id 6 for calling the TestRDKitDescriptors obj's underlying member method code with example usage: obj.test_with_custom_descriptors() without return types