code: def can_produce_rules(self):
          
          if not self.check_type(self.jobject, "weka.associations.AssociationRulesProducer"):
              return False
          return javabridge.call(self.jobject, "canProduceRules", "()Z")
docs: Checks whether association rules can be generated.
  
          :return: whether scheme implements AssociationRulesProducer interface and
          association rules can be generated
          :rtype: bool