code: def set_batch_size(batch_size):
      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
  
          batch_size = st.session_state[batch_size]
          url = (
              f"http://localhost:8081/models?model_name={MODEL_NAME}&url={MODEL_NAME}"
              f".tar.gz&batch_size={str(batch_size)}&initial_workers={str(workers)}"
              f"&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 7 for calling a global function with example usage: set_batch_size(batch_size) without return types