def decref(self, value):
        """
        This is allow to be called on non pyobject pointer, in which case
        no code is inserted.
        """
        lpyobj = self.context.get_value_type(types.pyobject)
        if value.type == lpyobj:
            self.pyapi.decref(value)

        This is allow to be called on non pyobject pointer, in which case
        no code is inserted.
        
numba/core/pylowering.py