code: def handle_row_limit_exceeded(row_limit: int, warnings: list):
      for warning in warnings:
          if warning.get("type") == "RowLimitExceeded":
              raise MaxRowsError(
                  "The number of dataset rows after filtering and aggregation exceeds\n"
                  f"the current limit of {row_limit}. Try adding an aggregation to reduce\n"
                  "the size of the dataset that must be loaded into the browser. Or, disable\n"
                  "the limit by calling alt.data_transformers.disable_max_rows(). Note that\n"
                  "disabling this limit may cause the browser to freeze or crash."
              )
  
file_path: altair/altair/utils/_vegafusion_data.py
imports: from toolz import curried
  import uuid
  from weakref import WeakValueDictionary
  from typing import Union, Dict, Set, MutableMapping, TypedDict, Final, TYPE_CHECKING
  from altair.utils._importers import import_vegafusion
  from altair.utils.core import DataFrameLike
  from altair.utils.data import DataType, ToValuesReturnType, MaxRowsError
  from altair.vegalite.data import default_data_transformer
label_desc: Use image node_id 6 for calling a global function with example usage: handle_row_limit_exceeded(row_limit, warnings) without return types