@classdef.singleton_method("stat", filename="path")
    def singleton_method_stat(self, space, filename):
        try:
            stat_val = os.stat(filename)
        except __HOLE__ as e:
            raise error_for_oserror(space, e)
        stat_obj = W_FileStatObject(space)
        stat_obj.set_stat(stat_val)
        return stat_obj
dataset/ETHPy150Open topazproject/topaz/topaz/objects/fileobject.py/W_FileObject.singleton_method_stat