tfx.components.util.value_utils.GetSoleValue

Helper method for retrieving a sole labeled input.

inputs Dict from label to a value list.
label Label of the value to retrieve.
strict If true, exactly one value should exist for label.

A sole labeled value.

ValueError If there is no/multiple input associated with the label.