* [feature] Add collect_env() to collect environment info * fix unit tests * fix the case when ops are not compiled * fix docstring