def align_key_order(input_dict, key_order):
    """
    This method create a new dictionary by aligning the key order to the given list.

    Args:
        input_dict: the dictionary whose key order needs to be aligned.
        key_order: the key order that needed to be aligned to.
    """
    to_Return = dict()
    for key in key_order:
        to_Return[key] = input_dict[key]
    return to_Return