fix KwargsHandler.to_kwargs not working with os.environ initialization in __post_init__ (#1738)
* fix KwargsHandler.to_kwargs not working with os.environ initialization in __post_init__
* fix test_torch_dynamo_plugin such that it wouldn't change os.environ permanently
* move clear_os_environ func to utils/other and rename it
* reformat code in order to pass ci quality check
* modifiy the comment of utils.other.clear_environment