Select loss keys from the internal dict based on selection setting.
selection (list or '*') – The selection setting, which can be a list of keys, ‘*’ for all keys
internal (dict) – The internal loss configuration dictionary to select from.
A list of selected keys based on the selection criteria.
list