code: def _validate_row_label(label, column_type_map):
      """
      Validate a row label column.
  
      Parameters
      ----------
      label : str
          Name of the row label column.
  
      column_type_map : dict[str, type]
          Dictionary mapping the name of each column in an SFrame to the type of
          the values in the column.
      """
      if not isinstance(label, str):
          raise TypeError("The row label column name must be a string.")
  
      if not label in column_type_map.keys():
          raise ToolkitError(
              "Row label column not found in the dataset."
          )
  
      if not column_type_map[label] in (str, int):
          raise TypeError("Row labels must be integers or strings.")
  
file_path: turicreate/src/python/turicreate/toolkits/_private_utils.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from turicreate.toolkits._main import ToolkitError
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_row_label(label, column_type_map) without return types