code: def get_service_module(service_path):
      
      # add custom paths so imports would work
      paths = [
          os.path.dirname(__file__),  # this folder, to catch base_service
          os.path.realpath(os.path.join(service_path, "..")),  # service's parent folder for import
          os.path.realpath(os.path.join(service_path)),  # service's folder for local imports
          os.path.realpath(os.path.join(service_path, DEPS_DIR)),  # deps dir
      ]
  
      for path in paths:
          path = os.path.realpath(path)
          logger.debug("adding %s to path", path)
          sys.path.insert(0, path)
  
      # get our service class instance
      service_name = os.path.basename(service_path)
      module = ".".join([service_name, service_name + "_service"])
      logger.debug("importing %s", module)
      return importlib.import_module(module)
docs: Add custom paths to sys and import service module.
  
      :param service_path: Path to service folder