def METHOD_NAME(self, mocker, job_template, labels):
    job_template.labels.all = mocker.MagicMock(**{'return_value': labels})
    serializer = JobOptionsSerializer()
    summary_labels = serializer._summary_field_labels(job_template)
    assert len(summary_labels['results']) == 10
    assert summary_labels['results'] == [{'id': x.id, 'name': x.name} for x in labels[:10]]