def get_data_from_somewhere(settings, result, key, *args, **kwargs):
    """Your function that goes to external service like gcp, aws, vault, etc"""
    # result.value is 'special:/foo/bar:token'
    if key in CACHE:
        return CACHE[key]

    if isinstance(result.value, str) and result.value.startswith("@special:"):
        _, path, key = result.value.split(":")
        # value = get_value_from_special_place(path, key)
        value = CACHE[key] = "lets believe it was retrieved from special place"
        return value

    return result
Your function that goes to external service like gcp, aws, vault, etc
tests_functional/legacy/hooking/app.py