code: def __init__(self, sidecar_type):
      # Needs to be here because this file gets loaded by lots of things and SIDECARS
      # may not be fully populated by then
      from metaflow.plugins import SIDECARS
  
      self._sidecar_type = sidecar_type
      self._has_valid_worker = False
      t = SIDECARS.get(self._sidecar_type)
      if t is not None and t.get_worker() is not None:
          self._has_valid_worker = True
      self.sidecar_process = None
  
file_path: metaflow/metaflow/sidecar/sidecar.py
imports: from .sidecar_subprocess import SidecarSubProcess
label_desc: Use image node_id 1 to create a new Sidecar object from inherited base classes: object with example: obj = Sidecar(sidecar_type)