# tfma.utils.verify_and_update_eval_shared_models

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/model-analysis/blob/v0.46.0/tensorflow_model_analysis/utils/model_util.py#L201-L263) |

Verifies eval shared models and normnalizes to produce a single list.

    tfma.utils.verify_and_update_eval_shared_models(
        eval_shared_model: Optional[https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/types/EvalSharedModel]
    ) -> Optional[List[types.EvalSharedModel]]

The output is normalized such that if a list or dict contains a single entry,
the model name will always be empty.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `eval_shared_model` | None, a single model, a list of models, or a dict of models keyed by model name. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of models or None. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| ValueError if dict is passed and keys don't match model names or a multi-item list is passed without model names. ||

<br />