@classdef.singleton_method("chmod", mode="int")
    def singleton_method_chmod(self, space, mode, args_w):
        for arg_w in args_w:
            path = Coerce.path(space, arg_w)
            try:
                os.chmod(path, mode)
            except __HOLE__ as e:
                raise error_for_oserror(space, e)
        return space.newint(len(args_w))
dataset/ETHPy150Open topazproject/topaz/topaz/objects/fileobject.py/W_FileObject.singleton_method_chmod