def METHOD_NAME(forge_yaml):
    """Utility method used to update conda forge configuration files
    Uage:
    >>> with update_conda_forge_config(somepath) as cfg:
    ...     cfg['foo'] = 'bar'
    """
    if os.path.exists(forge_yaml):
        with open(forge_yaml, "r") as fh:
            code = get_yaml().load(fh)
    else:
        code = {}
    # Code could come in as an empty list.
    if not code:
        code = {}
    yield code
    get_yaml().dump(code, Path(forge_yaml))