parameters: (self, point, **kwargs)
return_statement: return decorator
docstring: Return a decorator which registers the function
          at the given hook point.
docstring_summary: Return a decorator which registers the function
          at the given hook point.
docstring_tokens: Return a decorator which registers the function at the given hook point .
function: def register(self, point, **kwargs):
          """
          Return a decorator which registers the function
          at the given hook point.
          """
          def decorator(func):
              attr_name = kwargs.get('name', func.__name__)
              tool = Tool(point, func, **kwargs)
              setattr(self, attr_name, tool)
              return func
          return decorator
function_tokens: def register ( self , point , * * kwargs ) : def decorator ( func ) : attr_name = kwargs . get ( 'name' , func . __name__ ) tool = Tool ( point , func , * * kwargs ) setattr ( self , attr_name , tool ) return func return decorator