def collect_env():
    """Collect the information of the running environments."""
    env_info = collect_base_env()
    env_info['MMSegmentation'] = f'{mmseg.__version__}+{get_git_hash()[:7]}'

    return env_info
Collect the information of the running environments.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/utils/collect_env.py