def R(*args, **kwargs):
    if args and kwargs:
        raise TypeError("Either positional or keyword arguments may be given")
    elif args:
        if len(args) != 1:
            raise TypeError("Exactly one positional argument may be given")
        return repr(args[0])
    elif kwargs:
        if len(kwargs) != 1:
            raise TypeError("Exactly one keyword argument may be given")
        return "%s = %r" % kwargs.popitem()
    else:
        raise TypeError("Either positional or keyword arguments must be given")
Returns:
dataset/ETHPy150Open tomerfiliba/srcgen/srcgen/base.py/R--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/league.py/League.entries