@classdef.singleton_method("lstat", filename="path")
    def singleton_method_lstat(self, space, filename):
        try:
            stat_val = os.lstat(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_lstat