torchdms.utils.get_first_key_with_an_option

torchdms.utils.get_first_key_with_an_option(option_dict)[source]

Return the first key that maps to a list.

We will call such a key-value pair an “option”. An “option dict” will be a dict that (may) have such a key-value pair.