def METHOD_NAME(storageElement, gridName="", withSiteLocalSEMapping=False):
    """Given a DIRAC SE name this method returns a list of corresponding sites.
    Optionally restrict to Grid specified by name.
    """
    result = DMSHelpers().METHOD_NAME(
        storageElement, connectionLevel="DOWNLOAD" if withSiteLocalSEMapping else "LOCAL"
    )
    if not result["OK"] or not gridName:
        return result
    return S_OK([site for site in result["Value"] if siteGridName(site) == gridName])