code: def __init__(self, args=None, **kwargs):
      warnings.warn(
          "`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` "
          "instead.",
          FutureWarning,
      )
      super().__init__(args=args, **kwargs)
  
imports: import warnings
  from ..trainer import Trainer
  from ..utils import logging
label_desc: Use image node_id 1 to create a new SageMakerTrainer object from inherited base classes: Trainer with example: obj = SageMakerTrainer(args)