code: def load_py_module(
      python_path: str, py_module_name: str
  ) -> types.ModuleType:
      """
      Load the specified python module.
  
      Args:
          python_path(str) : The directory where the python module is located
          py_module_name(str) : Module name to be loaded
      """
      sys.path.insert(0, python_path)
  
      # Delete the cache module to avoid hazards. For example, when the user reinstalls a HubModule,
      # if the cache is not cleared, then what the user gets at this time is actually the HubModule
      # before uninstallation, this can cause some strange problems, e.g, fail to load model parameters.
      if py_module_name in sys.modules:
          sys.modules.pop(py_module_name)
  
      py_module = importlib.import_module(py_module_name)
      sys.path.pop(0)
  
      return py_module
  
imports: import base64
  import contextlib
  import hashlib
  import importlib
  import math
  import os
  import socket
  import sys
  import tempfile
  import time
  import traceback
  import types
  from typing import Generator
  from typing import List
  from urllib.parse import urlparse
  import cv2
  import numpy
  import packaging.version
  import requests
  import paddlehub.env
  import paddlehub.utils
  from paddlehub.utils.log import logger
label_desc: Use image node_id 8 for calling a global function with example usage: load_py_module(python_path, py_module_name) and returns: py_module