def args_tptnfpfn(*args, **kwargs):
if len(args) == <NUM_LIT:4>:<EOL><INDENT>tp, tn, fp, fn = args<EOL><DEDENT>elif len(kwargs) == <NUM_LIT:0>:<EOL><INDENT>if len(args) == <NUM_LIT:1>:<EOL><INDENT>args = listify(args[<NUM_LIT:0>])<EOL><DEDENT>tp, tn, fp, fn = list(list(args) + [<NUM_LIT:0>] * (<NUM_LIT:4> - len(args)))<EOL><DEDENT>else:<EOL><INDENT>args = list(args)<EOL>tp = kwargs['<STR_LIT>'] if '<STR_LIT>' in kwargs else args.pop(<NUM_LIT:0>) if len(args) else <NUM_LIT:0><EOL>tn = kwargs['<STR_LIT>'] if '<STR_LIT>' in kwargs else args.pop(<NUM_LIT:0>) if len(args) else <NUM_LIT:0><EOL>fp = kwargs['<STR_LIT>'] if '<STR_LIT>' in kwargs else args.pop(<NUM_LIT:0>) if len(args) else <NUM_LIT:0><EOL>fn = kwargs['<STR_LIT>'] if '<STR_LIT>' in kwargs else args.pop(<NUM_LIT:0>) if len(args) else <NUM_LIT:0><EOL><DEDENT>return tp, tn, fp, fn<EOL>
Convert kwargs for tp, tn, fp, fn to ordered tuple of args
    If a single tuple/list is passed as the first arg, it is assumed to be the desired tuple of args
    >>> args_tptnfpfn(1, 2, 3, 4)
    (1, 2, 3, 4)
    >>> args_tptnfpfn((1, 2, 3, 4))
    (1, 2, 3, 4)
    >>> args_tptnfpfn([1, 2, 3, 4])
    (1, 2, 3, 4)
    >>> args_tptnfpfn(3, 4, tp=1, tn=2)
    (1, 2, 3, 4)
    >>> args_tptnfpfn(tp=1, tn=2)
    (1, 2, 0, 0)
    >>> args_tptnfpfn(tp=1, tn=2, fp=3, fn=4)
    (1, 2, 3, 4)
    >>> args_tptnfpfn(1)
    (1, 0, 0, 0)