def record_type(self):
        # If PTR didn't share this field, we would use 'A' and 'AAAA'
        # instead of '4' and '6'.
        if self.ip_type is '4':
            return 'A'
        else:
            return 'AAAA'
dataset/ETHPy150Open mozilla/inventory/mozdns/address_record/models.py/BaseAddressRecord.record_type/operator `==` -> `is`