def create_factory_from_config(table, config):
 args = config.copy()
 del args['name']
 key = args.pop('type')
 try:
  factory = table[key]
 except KeyError:
  return None
 return partial(factory, **args)

def create_factory_from_config ( table , config ) : args = config . copy ( ) del args [ 'name' ] key = args . pop ( 'type' ) try : factory = table [ key ] except KeyError : return None return partial ( factory , ** args )
create a benchmark parameter factory from a configuration stanza .