def get_initializer(name):
 try:
  return globals()[name]
 except:
  raise ValueError('Invalid initialization function.')

def get_initializer ( name ) : try : return globals ( ) [ name ] except : raise ValueError ( 'Invalid initialization function.' )
returns initialization function by the name .