def get_last_npercent_elements(arr, k, n=0.25):
    """
    Splits an array into k parts and returns a new list containing the last 25% elements of each split.

    :param arr: The original array to be split.
    :param k: The number of splits.
    :return: A list containing the last 25% elements of each split.
    """
    # Length of each split
    split_length = len(arr) // k

    # New list to store the last n% elements of each split
    new_list = []

    for i in range(k):
        # Calculate the start and end indices of the last n% of the current split
        start_idx = i * split_length + int((1-n) * split_length)
        end_idx = (i + 1) * split_length

        # Extend the new list with the elements from the last n% of the current split
        new_list.extend(arr[start_idx:end_idx])

    return new_list

    Splits an array into k parts and returns a new list containing the last 25% elements of each split.

    :param arr: The original array to be split.
    :param k: The number of splits.
    :return: A list containing the last 25% elements of each split.
    
globe_walking/go1_gym/utils/dr_utils.py