def auxiliary_list(usr_platform = None):
    """ Lists all platform auxiliary modules
    """

    for platform in state.supported_platforms:

        # if they've specified a specific platform, check for it
        if usr_platform != 'All' and usr_platform != platform:
            continue

        utility.Msg("Auxiliary modules for '%s'" % platform, LOG.UPDATE)
        load = importlib.import_module('src.platform.%s.auxiliary' % platform)

        modules = list(pkgutil.iter_modules(load.__path__))
        if len(modules) <= 0:
            utility.Msg("\tNo auxiliarys found.")
            continue

        for auxiliary in modules:
            
            try:
                aux = auxiliary[0].find_module(auxiliary[1]).load_module(auxiliary[1]).Auxiliary()
            except:
                utility.Msg("Could not load auxiliary module '%s'" % 
                                            auxiliary[1], LOG.DEBUG)

            utility.Msg("\t%s ([%s] --%s)" % (aux.name,
                                        '|'.join(aux.versions), aux.flag))
dataset/ETHPy150Open hatRiot/clusterd/src/module/deploy_utils.py/auxiliary_list/original