code: def app_get_asset_url(config, path):
      if config.assets_external_path:
          prefix = config.assets_external_path
      else:
          prefix = config.requests_pathname_prefix
      return "/".join(
          [
              # Only take the first part of the pathname
              prefix.rstrip("/"),
              config.assets_url_path.lstrip("/"),
              path,
          ]
      )
  
file_path: dash/dash/_get_paths.py
imports: from ._utils import AttributeDict
  from .None import exceptions
label_desc: Use image node_id 2 for calling a global function with example usage: app_get_asset_url(config, path) and returns: str