def add_resource_manager_extra_kwargs_hook(f, hook):
 if (not hasattr(f, 'resource_manager_kwargs_hooks')):
  f.resource_manager_kwargs_hooks = []
 names = [h.__name__ for h in f.resource_manager_kwargs_hooks]
 if (hook.__name__ not in names):
  f.resource_manager_kwargs_hooks.append(hook)

def add_resource_manager_extra_kwargs_hook ( f , hook ) : if ( not hasattr ( f , 'resource_manager_kwargs_hooks' ) ) : f . resource_manager_kwargs_hooks = [ ] names = [ h . __name__ for h in f . resource_manager_kwargs_hooks ] if ( hook . __name__ not in names ) : f . resource_manager_kwargs_hooks . append ( hook )
add hook to bind cli arguments to resourcemanager calls .