Human: Can you show me a Python function to check all attributes in an object. Assistant: 
Here is a Python function to check all attributes in an object

import random

def check_all_attributes(obj):
    """
    Check all attributes in an object.
    """
    for attr in dir(obj):
        if not attr.startswith('__'):
            print(attr)

# Enter the object
obj = {'a': 1, 'b': 2}

# Calling the function
print((check_all_attributes(obj)))

#Example Output
# clear
# copy
# fromkeys
# get
# items
# keys
# pop
# popitem
# setdefault
# update
# values
# None

#Remember to inspect code for bugs.