code: def _raise_error_if_not_training_sframe(dataset, context_column):
      _raise_error_if_not_sframe(dataset, "datset")
      if context_column not in dataset.column_names():
          raise _ToolkitError(
              "Context Image column '%s' does not exist"
              % context_column
          )
      if dataset[context_column].dtype != _tc.Image:
          raise _ToolkitError(
              "Context Image column must contain images"
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate.toolkits._internal_utils
  from turicreate.toolkits import _coreml_utils
  from turicreate.toolkits._internal_utils import _raise_error_if_not_sframe
  from turicreate._deps.minimal_package import _minimal_package_import_check
  from ..None import _pre_trained_models
  from turicreate.toolkits._model import Model
  from turicreate.toolkits._main import ToolkitError
  import turicreate
  from .._mps_utils import MpsStyleGraphAPI
label_desc: Use image node_id 3 for calling a global function with example usage: _raise_error_if_not_training_sframe(dataset, context_column) without return types