def METHOD_NAME(self, bot, scope_class_and_type, chat_id):
    cls = scope_class_and_type[0]
    type_ = scope_class_and_type[1]
    assert cls.de_json({}, bot) is None
    json_dict = {"type": type_, "chat_id": chat_id, "user_id": 42}
    bot_command_scope = BotCommandScope.de_json(json_dict, bot)
    assert set(bot_command_scope.api_kwargs.keys()) == {"chat_id", "user_id"} - set(
        cls.__slots__
    )
    assert isinstance(bot_command_scope, BotCommandScope)
    assert isinstance(bot_command_scope, cls)
    assert bot_command_scope.type == type_
    if "chat_id" in cls.__slots__:
        assert bot_command_scope.chat_id == chat_id
    if "user_id" in cls.__slots__:
        assert bot_command_scope.user_id == 42