/**
 * This function takes a dictionary and a list of keys as input.
 * It creates a new dictionary by copying the key-value pairs for the provided keys from the source dictionary.
 * The function returns the new dictionary.
 */
fun copyDictKeyVals(sourceDict: Map<String, Any>, keyList: List<String>): Map<String, Any> {

    val newDict = mutableMapOf<String, Any>()

    // Copy the key-value pairs for the provided keys
    for (key in keyList) {
        if (sourceDict.containsKey(key)) {
            newDict[key] = sourceDict[key]!!
        }
    }

    return newDict
}
/**
 * This function takes a dictionary and a list of keys as input.
 * It creates a new dictionary by copying the key-value pairs for the provided keys from the source dictionary.
 * The function returns the new dictionary.
 */
fun copyDictKeyVals(sourceDict: Map<String, Any>, keyList: List<String>): Map<String, Any> {
/**
 * This function takes a dictionary and a list of keys as input.
 * It creates a new dictionary by copying the key-value pairs for the provided keys from the source dictionary.
 * The function returns the new dictionary.
 */
fun copyDictKeyVals(sourceDict: Map<String, Any>, keyList: List<String>): Map<String, Any> {

    val newDict = mutableMapOf<String, Any>()

    // Copy the key-value pairs for the provided keys
    for (key in keyList) {
        if (sourceDict.containsKey(key)) {
            newDict[key] = sourceDict[key]!!
        }
    }

    return newDict
}