code: def _acceptable_query_jar_url_prefix() -> str:
      cloud = os.environ["CLOUD"]
      query_storage_uri = os.environ["HAIL_QUERY_STORAGE_URI"]
      jar_subfolder = os.environ["HAIL_QUERY_ACCEPTABLE_JAR_SUBFOLDER"]
      acceptable_query_jar_url_prefix = (
          query_storage_uri + jar_subfolder
      )
  
      assert jar_subfolder[0] == "/", (query_storage_uri, jar_subfolder)
      assert query_storage_uri[-1] != "/", (
          query_storage_uri,
          jar_subfolder,
      )
  
      if cloud == "gcp":
          assert GoogleStorageAsyncFS.valid_url(
              acceptable_query_jar_url_prefix
          )
      else:
          assert cloud == "azure"
          assert AzureAsyncFS.valid_url(acceptable_query_jar_url_prefix)
  
      return acceptable_query_jar_url_prefix
  
file_path: hail/batch/batch/cloud/utils.py
imports: import os
  from typing import Any, Dict, Set
  from gear.cloud_config import get_azure_config, get_gcp_config
  from hailtop.aiocloud.aioazure import AzureAsyncFS
  from hailtop.aiocloud.aiogoogle import GoogleStorageAsyncFS
  from ..instance_config import InstanceConfig
  from .azure.instance_config import AzureSlimInstanceConfig
  from .gcp.instance_config import GCPSlimInstanceConfig
label_desc: Use image node_id 3 for calling a global function with example usage: _acceptable_query_jar_url_prefix() and returns: acceptable_query_jar_url_prefix