def METHOD_NAME(val, replacement="00000000-0000-0000-0000-000000000000"):
    # subscription presents in all api call
    retval = re.sub(
        "/(subscriptions)/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
        r"/\1/{}".format(replacement),
        val,
        flags=re.IGNORECASE,
    )
    # subscription is also used in graph call
    retval = re.sub(
        "https://(graph.windows.net)/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
        r"https://\1/{}".format(replacement),
        retval,
        flags=re.IGNORECASE,
    )
    return retval