code: def test_id_stability():
      def script():
          import streamlit as st
  
          st.slider("slider", key="slider")
  
      at = AppTest.from_function(script).run()
      s1 = at.slider[0]
      at = s1.set_value(5).run()
      s2 = at.slider[0]
  
      assert s1.id == s2.id
  
imports: from datetime import date, datetime, time, timedelta, timezone
  from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.js_number import JSNumber
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.testing.v1.app_test import AppTest
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: test_id_stability() without return types