def get_args_and_kwargs(self):
args = None<EOL>kwargs = None<EOL>if self.args:<EOL><INDENT>args = []<EOL>kwargs = {}<EOL>for arg in self.args:<EOL><INDENT>if arg.is_named:<EOL><INDENT>kwargs[arg.arg] = arg.value<EOL><DEDENT>else:<EOL><INDENT>args.append(arg.value)<EOL><DEDENT><DEDENT><DEDENT>return args, kwargs<EOL>
Return a list and a dict usable as ``*args, **kwargs`` to pass to a callable."

        If the entity is known to not accept arguments (``self.args`` is ``None``), then this
        method returns ``None`` for both args and kwargs.

        Returns
        -------
        tuple (list or None, dict or None)
            A tuple with as first value, the list of positioned arguments (or ``None``), and as
            second value the dict of named arguments (or ``None``)