def obj_to_ref(obj):
    """
    Returns the path to the given object.

    :rtype: str

    """
    try:
        ref = '%s:%s' % (obj.__module__, get_callable_name(obj))
        obj2 = ref_to_obj(ref)
        if obj != obj2:
            raise ValueError
    except Exception:
        raise ValueError(obj % 'Cannot determine the reference to %r')

    return ref
dataset/ETHPy150Open agronholm/apscheduler/apscheduler/util.py/obj_to_ref/swapped operands of `%`