def METHOD_NAME(alias, definitions: dict | ContextManager) -> None:
    expect: ContextManager = no_exception() if isinstance(definitions, dict) else definitions
    with expect:
        cli_alias = CliAlias.from_dict(alias)
        if isinstance(definitions, dict):
            assert cli_alias.definitions == FrozenDict(definitions)