code: 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_columns() == 0:
          raise ToolkitError(err_msg % variable_name)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ..data_structures.sframe import SArray
  from ..data_structures.sframe import SFrame
  from ..data_structures.sgraph import SGraph
  from ..data_structures.sgraph import Vertex
  from ..data_structures.sgraph import Edge
  from .._cython.cy_sarray import UnitySArrayProxy
  from .._cython.cy_sframe import UnitySFrameProxy
  from .._cython.cy_graph import UnityGraphProxy
  from ..toolkits._main import ToolkitError
  import json
  import six
label_desc: Use image node_id 21 for calling a global function with example usage: _raise_error_if_sframe_empty(dataset, variable_name) without return types