def METHOD_NAME(self, bot_command_scope):
    bot_command_scope_dict = bot_command_scope.to_dict()
    assert isinstance(bot_command_scope_dict, dict)
    assert bot_command_scope["type"] == bot_command_scope.type
    if hasattr(bot_command_scope, "chat_id"):
        assert bot_command_scope["chat_id"] == bot_command_scope.chat_id
    if hasattr(bot_command_scope, "user_id"):
        assert bot_command_scope["user_id"] == bot_command_scope.user_id