code: def __init__(
      self,
      *args: Any,
      encoder_settings: Optional[Dict[str, MLEncoderSettings]] = None,
      global_encoder_settings: Optional[MLGlobalEncoderSettings] = None,
      **kwargs: Any,
  ):
      super().__init__()
      if encoder_settings is None:
          self.encoder = None
      else:
          self.encoder = Encoder(
              encoder_settings, global_encoder_settings
          )
  
file_path: carefree-learn/cflearn/models/ml/base.py
imports: import torch
  from torch import Tensor
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import NamedTuple
  from .encoders import Encoder
  from .encoders import EncodingResult
  from ...schema import IMLModel
  from ...schema import MLEncoderSettings
  from ...schema import MLGlobalEncoderSettings
label_desc: Use image node_id 1 to create a new MLModel object from inherited base classes: IMLModel with example: obj = MLModel()