code: def __get_path_params(parsed_url):
      path = parsed_url.path.split("/")
  
      if len(path) == 1:
          return {}
  
      path_params = {"model_name": path[1]}
      if len(path) == 3:
          path_params.update({"model_version": path[2]})
  
      return path_params
  
file_path: serve/test/pytest/test_gRPC_management_apis.py
imports: import grpc
  import json
  import os
  import test_gRPC_utils
  import test_utils
  from urllib import parse
label_desc: Use image node_id 5 for calling a global function with example usage: __get_path_params(parsed_url) and returns: path_params, dict