def _pick_runner_opts(runner_alias=None, cloud_role=None):
 return set((opt_name for (opt_name, conf) in _RUNNER_OPTS.items() if (((runner_alias is None) or (conf.get('runners') is None) or (runner_alias in conf['runners'])) and ((cloud_role is None) or (cloud_role == conf.get('cloud_role'))))))

def _pick_runner_opts ( runner_alias = None , cloud_role = None ) : return set ( ( opt_name for ( opt_name , conf ) in _RUNNER_OPTS . items ( ) if ( ( ( runner_alias is None ) or ( conf . get ( 'runners' ) is None ) or ( runner_alias in conf [ 'runners' ] ) ) and ( ( cloud_role is None ) or ( cloud_role == conf . get ( 'cloud_role' ) ) ) ) ) )
return a set of option names that work for the given runner and fullfill the given cloud roles .