code: def __init__(self, stop_after: float, target_encoder: BaseEncoder):
      super().__init__(stop_after)
      self.target_encoder = target_encoder
      self.supports_proba = False
      self.stable = True
  
file_path: lightwood/lightwood/mixer/unit.py
imports: from typing import List, Optional
  import torch
  import pandas
  from lightwood.helpers.log import log
  from lightwood.mixer.base import BaseMixer
  from lightwood.encoder.base import BaseEncoder
  from lightwood.data.encoded_ds import EncodedDs
  from lightwood.api.types import PredictionArguments
label_desc: Use image node_id 1 to create a new Unit object from inherited base classes: BaseMixer with example: obj = Unit(stop_after, target_encoder)