def METHOD_NAME(self, chat_admin_rights):
    car = chat_admin_rights
    admin_rights_dict = car.to_dict()
    assert isinstance(admin_rights_dict, dict)
    assert admin_rights_dict["can_change_info"] == car.can_change_info
    assert admin_rights_dict["can_delete_messages"] == car.can_delete_messages
    assert admin_rights_dict["can_invite_users"] == car.can_invite_users
    assert admin_rights_dict["can_pin_messages"] == car.can_pin_messages
    assert admin_rights_dict["can_promote_members"] == car.can_promote_members
    assert admin_rights_dict["can_restrict_members"] == car.can_restrict_members
    assert admin_rights_dict["can_post_messages"] == car.can_post_messages
    assert admin_rights_dict["can_edit_messages"] == car.can_edit_messages
    assert admin_rights_dict["can_manage_chat"] == car.can_manage_chat
    assert admin_rights_dict["is_anonymous"] == car.is_anonymous
    assert admin_rights_dict["can_manage_video_chats"] == car.can_manage_video_chats
    assert admin_rights_dict["can_manage_topics"] == car.can_manage_topics