import yaml


def parse_config_file(file_dir=None):
    """Parse configuration file."""
    if file_dir is None:
        return {}
    with open(file_dir, "r") as file:
        kwargs = yaml.safe_load(file)
    return kwargs