def get_setting_name_and_refid(node):
 (entry_type, info, refid) = node['entries'][0][:3]
 return (info.replace('; setting', ''), refid)

def get_setting_name_and_refid ( node ) : ( entry_type , info , refid ) = node [ 'entries' ] [ 0 ] [ : 3 ] return ( info . replace ( '; setting' , '' ) , refid )
extract setting name from directive index node .