code: def set_max_batch_delay(max_batch_delay):
      if st.session_state.registered:
          url = f"http://localhost:8081/models/{MODEL_NAME}/1.0"
          res = requests.delete(url)
          server_state_container.caption(res.text)
          st.session_state.registered = False
  
          max_batch_delay = st.session_state[max_batch_delay]
          url = (
              f"http://localhost:8081/models?model_name={MODEL_NAME}&url="
              f"{MODEL_NAME}.tar.gz&batch_size={str(batch_size)}&initial_workers="
              f"{str(workers)}&synchronous=true&max_batch_delay={str(max_batch_delay)}"
          )
          _register_model(url)
  
file_path: serve/examples/LLM/llama2/chat_app/torchserve_server_app.py
imports: import json
  import os
  import requests
  import streamlit
label_desc: Use image node_id 8 for calling a global function with example usage: set_max_batch_delay(max_batch_delay) without return types