<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_nice_to_pegasus_fn(*args, **kwargs):
 """ Returns a coordinate translation function from the 5-term "nice" coordinates to the 4-term pegasus_index coordinates. Details on the returned function, nice_to_pegasus(t, y, x, u, k) Inputs are 5-tuples of ints, return is a 4-tuple of ints. See pegasus_graph for description of the pegasus_index and "nice" coordinate systems. Returns ------- nice_to_pegasus_fn(pegasus_coordinates):
 a function A function that accepts Pegasus coordinates and returns the corresponding augmented chimera coordinates """

    if args or kwargs:
        warnings.warn("Deprecation warning: get_pegasus_to_nice_fn does not need / use parameters anymore")
    def c2p0(y, x, u, k): return (u, y+1 if u else x, 4+k if u else 4+k, x if u else y)
    def c2p1(y, x, u, k): return (u, y+1 if u else x, k if u else 8+k, x if u else y)
    def c2p2(y, x, u, k): return (u, y if u else x + 1, 8+k if u else k, x if u else y)
    def n2p(t, y, x, u, k): return [c2p0, c2p1, c2p2][t](y, x, u, k)
    return n2p