code: def make_url_path_regex(*path, **kwargs) -> str:
      """Get a regex of the form ^/foo/bar/baz/?$ for a path (foo, bar, baz)."""
      path = [
          x.strip("/") for x in path if x
      ]  # Filter out falsely components.
      path_format = (
          r"^/%s/?$" if kwargs.get("trailing_slash", True) else r"^/%s$"
      )
      return path_format % "/".join(path)
  
file_path: streamlit/lib/streamlit/web/server/server_util.py
imports: from typing import Optional
  from urllib.parse import urljoin
  import tornado.web
  from streamlit import config, net_util, url_util
label_desc: Use image node_id 3 for calling a global function with example usage: make_url_path_regex() and returns: unknown