# tf_agents.specs.array_spec.check_arrays_nest

<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/specs/array_spec.py#L114-L129) |

Check that the arrays conform to the spec.

    tf_agents.specs.array_spec.check_arrays_nest(
        arrays, spec
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `arrays` | A NumPy array, or a nested dict, list or tuple of arrays. |
| `spec` | An `ArraySpec`, or a nested dict, list or tuple of `ArraySpec`s. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| True if the arrays conforms to the spec, False otherwise. ||

<br />