code: def main(worker_type):
      sidecar_type = SIDECARS.get(worker_type)
      if sidecar_type is not None:
          worker_class = sidecar_type.get_worker()
          if worker_class is not None:
              process_messages(worker_type, worker_class())
          else:
              print(
                  "[sidecar:%s] Sidecar does not have associated worker"
                  % worker_type,
                  file=sys.stderr,
              )
      else:
          print(
              "Unrecognized sidecar_process: %s" % worker_type,
              file=sys.stderr,
          )
  
file_path: metaflow/metaflow/sidecar/sidecar_worker.py
imports: from __future__ import print_function
  import os
  import sys
  import traceback
  from metaflow.sidecar import Message, MessageTypes
  from metaflow.plugins import SIDECARS
  from metaflow._vendor import click
  import metaflow.tracing
label_desc: Use image node_id 2 for calling a global function with example usage: main(worker_type) without return types