human
Python: Finding a (string) key in a dictionary that contains a substring
assistant
Here is some code to find all the items from a dictionary `D` if the key contains the string `Light`

[(k, v) for k, v in D.items() if 'Light' in k]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.