code: def _get_model_kwargs(
      self, model, history, optimizer, run_id, metadata
  ):
      return dict(
          history=history,
          model=model,
          optimizer=optimizer,
          input_shapes=self.getInputShapes(),
          run_id=run_id,
          _metadata=metadata,
          loss=self.getLoss(),
          loss_constructors=self.getLossConstructors(),
          label_col=self.getLabelCol(),
          image_col=self.getImageCol(),
          prediction_col=self.getPredictionCol(),
      )
  
imports: import sys
  import torchvision.transforms
  from horovod.spark.common.backend import SparkBackend
  from horovod.spark.lightning import TorchEstimator
  from PIL import Image
  from pyspark.context import SparkContext
  from pyspark.ml.param.shared import Param, Params
  from pytorch_lightning.utilities import _module_available
  from synapse.ml.dl.DeepVisionModel import DeepVisionModel
  from synapse.ml.dl.LitDeepVisionModel import LitDeepVisionModel
  from synapse.ml.dl.utils import keywords_catch, get_or_create_backend
  from synapse.ml.dl.PredictionParams import VisionPredictionParams
label_desc: Use image node_id 22 for calling the DeepVisionClassifier obj's underlying member method code with example usage: obj._get_model_kwargs(model, history, optimizer, run_id, metadata) and returns: dict