human
Can you show me a Python program for a filter dictionary on key basis.
assistant
Here is a Python program for a filter dictionary on key basis

import collections

def filter_dict_on_key_basis(dictionary, key):
    """Filter dictionary on key basis"""
    return {k: v for k, v in list(dictionary.items()) if k == key}

# Enter the dictionary
myDict = collections.OrderedDict()

# Add some entries
myDict['a'] = 1
myDict['b'] = 2
myDict['c'] = 3

# Calling pop method
myDict.pop('a')

# Printing the dictionary
print(myDict)

# Calling the function
print((filter_dict_on_key_basis(myDict, 'a')))

#Example Output
# OrderedDict([('b', 2), ('c', 3)])
# {}

#Remember to inspect code for bugs.