code: def test_check_callback_rules_error(self):
      with pytest.raises(StreamlitAPIException) as e:
          check_callback_rules(None, lambda x: x)
  
      assert "is not allowed." in str(e.value)
  
imports: import copy
  import enum
  import os
  import unittest
  from unittest.mock import MagicMock, patch
  import pytest
  from streamlit import config
  from streamlit.elements import utils
  from streamlit.elements.utils import check_callback_rules, check_session_state_rules, maybe_coerce_enum, maybe_coerce_enum_sequence
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.state.common import RegisterWidgetResult
label_desc: Use image node_id 5 for calling the ElementUtilsTest obj's underlying member method code with example usage: obj.test_check_callback_rules_error() without return types