parameters: (dataset, variable_name="SFrame")
docstring: Check if the input is empty.
docstring_summary: Check if the input is empty.
docstring_tokens: Check if the input is empty .
function: def _raise_error_if_sframe_empty(dataset, variable_name="SFrame"):
      """
      Check if the input is empty.
      """
      err_msg = "Input %s either has no rows or no columns. A non-empty SFrame "
      err_msg += "is required."
  
      if dataset.num_rows() == 0 or dataset.num_cols() == 0:
          raise ToolkitError(err_msg % variable_name)
function_tokens: def _raise_error_if_sframe_empty ( dataset , variable_name = "SFrame" ) : err_msg = "Input %s either has no rows or no columns. A non-empty SFrame " err_msg += "is required." if dataset . num_rows ( ) == 0 or dataset . num_cols ( ) == 0 : raise ToolkitError ( err_msg % variable_name )