code: def _check_input(dataset):
      if isinstance(dataset, _SFrame):
          assert dataset.num_columns() == 1, (
              "The provided SFrame contains more than one column. It should have "
              + "only one column of type dict."
          )
          colname = dataset.column_names()[0]
          dataset = dataset[colname]
  
      assert isinstance(
          dataset, _SArray
      ), "Provided data must be an SArray."
  
      assert dataset.dtype == dict, (
          "Provided data must be of type dict, representing the documents in "
          + "bag-of-words format. Please consult the documentation."
      )
  
      return dataset
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate
  from turicreate import SArray
  from turicreate import SFrame
  from turicreate.toolkits._internal_utils import _raise_error_if_not_sarray
  import random
  import six
  import turicreate.toolkits._feature_engineering
label_desc: Use image node_id 11 for calling a global function with example usage: _check_input(dataset) and returns: dataset