def _generate_new_id(self, original_message_id, event_type):
        # Generate message_id for new events deterministically from
        # the original message_id and event type using uuid5 algo.
        # This will allow any dups to be caught by message_id. (mdragon)
        if original_message_id:
            oid = uuid.UUID(original_message_id)
            return uuid.uuid5(oid, event_type)
        else:
            logger.error("Generating %s, but origional message missing"
                         " origional_message_id." % event_type)
            return uuid.uuid4()
dataset/ETHPy150Open openstack/stacktach-winchester/winchester/pipeline_handler.py/UsageHandler._generate_new_id/original