'Return the id of the Job that created this dataset (or its original)
or None if no `creating_job` is found.'

def serialize_creating_job(self, dataset, key, **context):

    if dataset.creating_job:
        return self.serialize_id(dataset.creating_job, 'id')
    else:
        return None
