def METHOD_NAME(scramArch=None):
    """
    Matches a ScramArch - or a list of it - against a map of Scram
    to Operating System
    :param scramArch: string or list of scramArches defined for a given job
    :return: a string with the required OS to use
    """
    defaultValue = 'any'
    if not scramArch:
        return defaultValue
    requiredOSes = set()
    if isinstance(scramArch, (str, bytes)):
        scramArch = [scramArch]
    elif not isinstance(scramArch, (list, tuple)):
        return defaultValue
    for validArch in scramArch:
        scramOS = validArch.split("_")[0]
        requiredOSes.update(ARCH_TO_OS.get(scramOS, []))
    return ','.join(sorted(requiredOSes))