def METHOD_NAME(self, index, attribute_id):  # noqa: N802
    handle_ctype = _visatype.ViSession(self._handle)  # case S110
    index_ctype = _visatype.ViInt32(index)  # case S150
    attribute_id_ctype = _visatype.ViInt32(attribute_id)  # case S150
    attribute_value_ctype = _visatype.ViInt32()  # case S220
    error_code = self._library.niModInst_GetInstalledDeviceAttributeViInt32(handle_ctype, index_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype)))
    errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
    return int(attribute_value_ctype.value)