code: def classify(self, gadget):
          
          typed_gadgets = []
  
          for g_type, g_classifier in self._classifiers.items():
              try:
                  typed_gadgets += self._classify(gadget, g_classifier, g_type, self._emu_iters)
              except:
                  import traceback
  
                  print("[-] Error classifying gadgets :")
                  print(gadget)
                  print("")
                  print(traceback.format_exc())
  
          # Sort and return.
          return sorted(typed_gadgets, key=lambda g: str(g))
docs: Classify gadgets.