def import_required(mod_name, error_msg):
 try:
  return import_module(mod_name)
 except ImportError:
  raise RuntimeError(error_msg)

def import_required ( mod_name , error_msg ) : try : return import_module ( mod_name ) except ImportError : raise RuntimeError ( error_msg )
attempt to import a required dependency .