def METHOD_NAME(openpype_root, package, version=None):
    arg = None
    if package and version:
        arg = f"{package}=={version}"
    elif package:
        arg = package
    if not arg:
        _print("Couldn't find package to install")
        sys.exit(1)
    _print(f"We'll install {arg}")
    python_vendor_dir = openpype_root / "vendor" / "python"
    try:
        subprocess.run(
            [
                sys.executable,
                "-m", "pip", "install", "--upgrade", arg,
                "-t", str(python_vendor_dir)
            ],
            check=True,
            stdout=subprocess.DEVNULL
        )
    except subprocess.CalledProcessError as e:
        _print(f"Error during {package} installation.", 1)
        _print(str(e), 1)
        sys.exit(1)