code: def headless_url(path: str, user_friendly: bool = False) -> str:
      return urllib.parse.urljoin(
          get_url_host(user_friendly=user_friendly), path
      )
  
imports: import urllib
  from typing import Any
  from flask import current_app, url_for
label_desc: Use image node_id 2 for calling a global function with example usage: headless_url(path, user_friendly) and returns: urllib