def _fetch_ret_config(ret):
 if (not ret):
  return None
 if ('ret_config' not in ret):
  return ''
 return str(ret['ret_config'])

def _fetch_ret_config ( ret ) : if ( not ret ) : return None if ( 'ret_config' not in ret ) : return '' return str ( ret [ 'ret_config' ] )
fetches ret_config if available .