def set_flags(self, **kwargs):
super(LoadBalancedView, self).set_flags(**kwargs)<EOL>for name in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>if name in kwargs:<EOL><INDENT>value = kwargs[name]<EOL>if self._validate_dependency(value):<EOL><INDENT>setattr(self, name, value)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>"%value)<EOL><DEDENT><DEDENT><DEDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>t = kwargs['<STR_LIT>']<EOL>if not isinstance(t, (int, float, type(None))):<EOL><INDENT>raise TypeError("<STR_LIT>"%type(t))<EOL><DEDENT>if t is not None:<EOL><INDENT>if t < <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>"%t)<EOL><DEDENT><DEDENT>self.timeout = t<EOL><DEDENT>
set my attribute flags by keyword.

        A View is a wrapper for the Client's apply method, but with attributes
        that specify keyword arguments, those attributes can be set by keyword
        argument with this method.

        Parameters
        ----------

        block : bool
            whether to wait for results
        track : bool
            whether to create a MessageTracker to allow the user to
            safely edit after arrays and buffers during non-copying
            sends.

        after : Dependency or collection of msg_ids
            Only for load-balanced execution (targets=None)
            Specify a list of msg_ids as a time-based dependency.
            This job will only be run *after* the dependencies
            have been met.

        follow : Dependency or collection of msg_ids
            Only for load-balanced execution (targets=None)
            Specify a list of msg_ids as a location-based dependency.
            This job will only be run on an engine where this dependency
            is met.

        timeout : float/int or None
            Only for load-balanced execution (targets=None)
            Specify an amount of time (in seconds) for the scheduler to
            wait for dependencies to be met before failing with a
            DependencyTimeout.

        retries : int
            Number of times a task will be retried on failure.