# Module: tf_agents.environments.utils

<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/environments/utils.py) |

Common utilities for TF-Agents Environments.

## Functions

[`get_tf_env(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/utils/get_tf_env): Ensures output is a tf_environment, wrapping py_environments if needed.

[`validate_py_environment(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/validate_py_environment): Validates the environment follows the defined specs.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />