code: def test_big_table_throws_error_that_can_be_overridden(wandb_init):
      run = wandb_init(
          settings={"table_raise_on_max_row_limit_exceeded": True}
      )
  
      # make this smaller just for this one test to make the runtime shorter
      with mock.patch("wandb.Table.MAX_ARTIFACT_ROWS", 10):
          table = wandb.Table(
              data=np.arange(wandb.Table.MAX_ARTIFACT_ROWS + 1)[
                  :, None
              ].tolist(),
              columns=["col1"],
          )
  
          with pytest.raises(ValueError):
              run.log({"table": table})
  
          with mock.patch(
              "wandb.Table.MAX_ARTIFACT_ROWS",
              wandb.Table.MAX_ARTIFACT_ROWS + 1,
          ):
              try:
                  # should no longer raise
                  run.log({"table": table})
              except Exception as e:
                  raise AssertionError(
                      f"Logging a big table with an overridden limit raised with {e}"
                  )
  
          run.finish()
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_data_types_full.py
imports: import platform
  from unittest import mock
  import numpy
  import pytest
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: test_big_table_throws_error_that_can_be_overridden(wandb_init) without return types