def _environment_variables() -> Dict[str, str]:
    """
    Wraps `os.environ` to filter out non-encodable values.
    """
    return {key: value for key, value in os.environ.items() if _is_encodable(value)}
Wraps `os.environ` to filter out non-encodable values.
allennlp/common/params.py