human
filter a dictionary by value.
assistant
Here is a Python function to filter a dictionary by value

import collections

def filter_dict_by_value(dictionary, value):
    """
    Filter a dictionary by value
    """
    return {k: v for k, v in list(dictionary.items()) if v == value}

# Enter the dictionary
dictionary = {"name": "dahlia", "age": "23", "city": "Delhi"}

# Calling the function
print((filter_dict_by_value(dictionary, "Delhi")))

#Example Output
# {'city': 'Delhi'}

#Remember to inspect code for bugs.