def map_string2func(funcname, clss):
 if (funcname == 'fprop_roipooling'):
  return _get_fprop_roipooling(clss)
 if (funcname == 'bprop_roipooling'):
  return _get_bprop_roipooling(clss)
 raise AttributeError((("kernel type '" + funcname) + "' not understood"))

def map_string2func ( funcname , clss ) : if ( funcname == 'fprop_roipooling' ) : return _get_fprop_roipooling ( clss ) if ( funcname == 'bprop_roipooling' ) : return _get_bprop_roipooling ( clss ) raise AttributeError ( ( ( "kernel type '" + funcname ) + "' not understood" ) )
helper function that converts string function names to function calls .