def METHOD_NAME(name: str, path: str) -> None:
    """Create WebAssets library(set of Bundles).
    """
    config_path = os.path.join(path, "webassets.yaml")
    if not os.path.exists(config_path):
        config_path = os.path.join(path, "webassets.yml")
    if not os.path.exists(config_path):
        log.warning(
            "Cannot create library %s at %s because webassets.yaml is missing",
            name,
            path,
        )
        return
    library: dict[str, Any] = YAMLLoader(config_path).load_bundles()
    bundles = {
        f"{name}/{key}": bundle
        for key, bundle
        in library.items()
    }
    # skip attempts to register an asset if name is taken. It gives us
    # templates-like behavior, where the item that was registered first has
    # highest priority.
    for name, bundle in bundles.items():
        if is_registered(name):
            log.debug(
                "Skip registration of %s because it already exists",
                name,
            )
            continue
        # use absolute path to files. Otherwise they'll behave like templates
        # and if plugin A and plugin B has their own `x.css`(i.e
        # `ckanext/A/assets/x.css` and `ckanext/B/assets/x.css`), both plugins
        # will load the same `x.css` from the plugin that was first registered
        bundle.contents = [
            os.path.join(path, item)
            for item in bundle.contents
        ]
        log.debug("Register asset %s", name)
        env.register(name, bundle)