# tf_agents.utils.test_utils.contains

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/test_utils.py#L33-L53) |

Check if all items in list2 are in list1.

    tf_agents.utils.test_utils.contains(
        list1, list2
    )

This function handles the case when the parameters are lists of np.arrays
(which wouldn't be handled by something like .issubset(...)

<br />

<br />

<br />

| ## Args ||
|---|---|
| `list1` | List which may or may not contain list2. |
| `list2` | List to check if included in list 1. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A boolean indicating whether list2 is contained in list1. ||

<br />