code: def uri_path(server_url, api):
      srv = server_url
      if server_url.endswith("/"):
          srv = server_url[:-1]
      if api.startswith("/"):
          srv += api
      else:
          api = "/" + api
          srv += api
      return srv
  
imports: import json
  import os
  import requests
  import threading
  import time
  import yaml
  from collections import OrderedDict
  from typing import List
  import paddle
  import paddlehub
  import paddlehub.config
  from paddlehub.config import cache_config
  from paddlehub.server import ServerSource, GitSource
  from paddlehub.utils import utils
label_desc: Use image node_id 1 for calling a global function with example usage: uri_path(server_url, api) and returns: srv