code: def get_user_config() -> configparser.ConfigParser:
      user_config = configparser.ConfigParser()
      config_file = get_user_config_path()
      # in older versions, the config file was accidentally named
      # config.yaml, if the new config does not exist, and the old
      # one does, silently rename it
      old_path = config_file.with_name("config.yaml")
      if old_path.exists() and not config_file.exists():
          old_path.rename(config_file)
      user_config.read(config_file)
      return user_config
  
file_path: hail/hail/python/hailtop/config/user_config.py
imports: from typing import Optional, Union, TypeVar
  import os
  import re
  import configparser
  import warnings
  from pathlib import Path
  from .variables import ConfigVariable
label_desc: Use image node_id 5 for calling a global function with example usage: get_user_config() and returns: user_config