code: def make_worker(worker_cls, HorovodWorker):
      if worker_cls is None:
          return HorovodWorker
      if issubclass(worker_cls, HorovodWorker):
          return worker_cls
  
      class Worker(worker_cls, HorovodWorker):
          pass
  
      return Worker
  
file_path: BigDL/python/orca/src/bigdl/orca/learn/horovod/horovod_ray_runner.py
imports: import ray
  import os
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 2 for calling a global function with example usage: make_worker(worker_cls, HorovodWorker) and returns: Worker, HorovodWorker, worker_cls