def assert_instance(self, node, inst, expected_class):
        assert isinstance(inst, expected_class), self.TranslationError(
            "instance of '%s' expected, got '%r'" % (expected_class.__name__, inst),
            self.get_lineno(node),
        )
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.assert_instance/original