code: def accelerate(model):
      @functools.wraps(model)
      def _decorated(*args, **kwargs):
          runtime_conf = _RUNTIME_CONF_VAR.get(None)
          if runtime_conf is None or runtime_conf.accelerator is None:
              return model(*args, **kwargs)
          elif runtime_conf.accelerator.is_triton():
              from towhee.serve.triton.triton_client import TritonClient
  
              triton_conf = runtime_conf.accelerator.triton
              return TritonClient(
                  triton_conf.model_name,
                  triton_conf.inputs,
                  triton_conf.outputs,
              )
          elif runtime_conf.accelerator.is_mock():
              return MockModel()
          else:
              return None
  
      return _decorated
  
file_path: towhee/towhee/runtime/runtime_conf.py
imports: import contextvars
  import contextlib
  import functools
label_desc: Use image node_id 4 for calling a global function with example usage: accelerate(model) and returns: _decorated, model, TritonClient, MockModel, None