def METHOD_NAME(name, package_registry, version=None):
    """
    Internal function used to install the module
    called 'name', using the passed 'package_registry'
    to find the package that contains the package
    that contains this module
    """
    conda = _find_conda()
    # ensure that we have the root package name
    try:
        package = name.split(".")[0]
    except Exception:
        package = name
    if package in package_registry:
        package = package_registry[name]
    import subprocess
    try:
        if version is not None:
            try:
                _v = float(version)
                version = "==%s" % version
            except Exception:
                pass
            package = "'%s%s'" % (package, version)
        print(
            "\nTrying to install %s from package %s using %s...\n"
            % (name, package, conda)
        )
        args = [conda, "install", package, "-y"]
        result = subprocess.run(args)
        if result.returncode == 0:
            # installed ok
            return
    except Exception:
        pass
    print(
        "\nWARNING: Unable to install '%s' from package '%s'\n"
        % (name, package)
    )