openmnglab.util.dicts.get_any_key#

openmnglab.util.dicts.get_any_key(map: Mapping[_KT, _VT_co], *keys: _KT) _KT | None[source]#

Returns any of the given keys if they exist in the mapping :param map: mapping in which the keys should be contained :param keys: key to check for in the mapping :return: anyone of the given keys that exists or None if no key exists