def METHOD_NAME(
    staging=False, global_settings=None
) -> str:
    """Version that should be currently used in studio.
    Args:
        staging (bool): Get current version for staging.
        global_settings (dict): Optional precached global settings.
    Returns:
        str: OpenPype version which should be used. Empty string means latest.
    """
    mongo_url = os.environ.get("OPENPYPE_MONGO")
    if global_settings is None:
        global_settings = get_openpype_global_settings(mongo_url)
    key = "staging_version" if staging else "production_version"
    return global_settings.get(key) or ""