code: def test_slider():
      script = AppTest.from_string(
          """
          import streamlit as st
          from datetime import datetime, time
  
          st.slider("defaults")
          st.slider("int", min_value=-100, max_value=100, step=5, value=10)
          st.slider("time", value=(time(11, 30), time(12, 45)))
          st.slider("datetime", value=datetime(2020, 1, 1, 9, 30))
          st.slider("float", min_value=0.0, max_value=1.0, step=0.01)
          """,
      )
      sr = script.run()
      s = sr.slider
      assert s[0].value == 0
      assert s[1].value == 10
      assert s[2].value == (time(11, 30), time(12, 45))
      assert s[3].value == datetime(2020, 1, 1, 9, 30)
      assert s[4].value == 0.0
  
      sr2 = sr.slider[1].set_value(50).run()
      sr3 = sr2.slider[2].set_range(time(12, 0), time(12, 15)).run()
      sr4 = sr3.slider[3].set_value(datetime(2020, 1, 10, 8, 0)).run()
      sr5 = sr4.slider[4].set_value(0.1).run()
      s = sr5.slider
      assert s[0].value == 0
      assert s[1].value == 50
      assert s[2].value == (time(12, 0), time(12, 15))
      assert s[3].value == datetime(2020, 1, 10, 8, 0)
      assert s[4].value == 0.1
  
      # Verify that creating the reprs does not throw
      repr(sr.slider[0])
  
imports: from datetime import date, datetime, time
  import numpy
  import pandas
  import pytest
  from streamlit.elements.markdown import MARKDOWN_HORIZONTAL_RULE_EXPRESSION
  from streamlit.testing.v1.app_test import AppTest
label_desc: Use image node_id 30 for calling a global function with example usage: test_slider() without return types