code: def _register_model(url):
      res = requests.post(url)
      if res.status_code != 200:
          server_state_container.error(
              "Error registering model", icon="🚫"
          )
          st.session_state.started = True
          return
      st.session_state.registered = True
      st.session_state.started = False
      st.session_state.stopped = False
      server_state_container.caption(res.text)
  
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 3 for calling a global function with example usage: _register_model(url) without return types