1class Callable():
2    """A callable object that behaves like a function."""
3
4    def __call__(self, arg1, arg2, **kwargs):
5        pass
6
7    def method(self, arg1, arg2):
8        """docstring of Callable.method()."""
9        pass
10
11
12function = Callable()
13method = function.method
14