def keyword(name=None, tags=()):
 if callable(name):
  return keyword()(name)
 def _method_wrapper(func):
  func.robot_name = name
  func.robot_tags = tags
  return func
 return _method_wrapper

def keyword ( name = None , tags = ( ) ) : if callable ( name ) : return keyword ( ) ( name ) def _method_wrapper ( func ) : func . robot_name = name func . robot_tags = tags return func return _method_wrapper
rest controller .