def merge_dicts_and_lists_b_into_a(
    a: dict[Any, Any] | list[Any],
    b: dict[Any, Any] | list[Any],
) -> dict[Any, Any] | list[Any]:
    """Merge two configuration dictionaries or lists.

    This function provides the public interface for merging configurations.
    It delegates to the internal ``_merge_dicts_and_lists_b_into_a`` function.

    Args:
        a (dict[Any, Any] | list[Any]): First dictionary or list to merge.
        b (dict[Any, Any] | list[Any]): Second dictionary or list to merge into first.

    Returns:
        dict[Any, Any] | list[Any]: Merged configuration.

    Example:
        >>> a = {"x": 1, "y": [1, 2]}
        >>> b = {"y": [3], "z": 2}
        >>> result = merge_dicts_and_lists_b_into_a(a, b)
        >>> result["y"]
        [1, 2, 3]
        >>> result["z"]
        2
    """
    return _merge_dicts_and_lists_b_into_a(a, b, "")
Merge two configuration dictionaries or lists.

    This function provides the public interface for merging configurations.
    It delegates to the internal ``_merge_dicts_and_lists_b_into_a`` function.

    Args:
        a (dict[Any, Any] | list[Any]): First dictionary or list to merge.
        b (dict[Any, Any] | list[Any]): Second dictionary or list to merge into first.

    Returns:
        dict[Any, Any] | list[Any]: Merged configuration.

    Example:
        >>> a = {"x": 1, "y": [1, 2]}
        >>> b = {"y": [3], "z": 2}
        >>> result = merge_dicts_and_lists_b_into_a(a, b)
        >>> result["y"]
        [1, 2, 3]
        >>> result["z"]
        2
    
src/anomalib/callbacks/nncf/utils.py