# tfma.utils.compound_key

<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/util.py#L404-L413) |

Returns a compound key based on a list of keys.

    tfma.utils.compound_key(
        keys: Sequence[str], separator: str = KEY_SEPARATOR
    ) -> str

<br />

<br />

<br />

| ## Args ||
|---|---|
| `keys` | Keys used to make up compound key. |
| `separator` | Separator between keys. To ensure the keys can be parsed out of any compound key created, any use of a separator within a key will be replaced by two separators. |

<br />