def __get__(self, obj, obj_type):
        """ Support usage of decorator on instance methods. """
        # This avoids needing to cache the `obj` as member variable
        return functools.partial(self.__call__, obj)
 Support usage of decorator on instance methods. 
petastorm/hdfs/namenode.py