def METHOD_NAME(package_name: Optional[str] = None,
                                 resource_group_name: Optional[str] = None,
                                 test_base_account_name: Optional[str] = None,
                                 test_result_name: Optional[str] = None,
                                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTestResultDownloadURLResult:
    """
    Gets the download URL of the test result.
    :param str package_name: The resource name of the Test Base Package.
    :param str resource_group_name: The name of the resource group that contains the resource.
    :param str test_base_account_name: The resource name of the Test Base Account.
    :param str test_result_name: The Test Result Name. It equals to TestResult-{TestResultId} string.
    """
    __args__ = dict()
    __args__['packageName'] = package_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['testBaseAccountName'] = test_base_account_name
    __args__['testResultName'] = test_result_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:testbase/v20220401preview:getTestResultDownloadURL', __args__, opts=opts, typ=GetTestResultDownloadURLResult).value
    return AwaitableGetTestResultDownloadURLResult(
        download_url=pulumi.get(__ret__, 'download_url'),
        expiration_time=pulumi.get(__ret__, 'expiration_time'))