def site_is_subsample(site):
    """
    Determines whether a trace site originated from a subsample statement inside an `iarange`.
    """
    return site["type"] == "sample" and type(site["fn"]).__name__ == "_Subsample"