code: def test_arg_validation():
      with pytest.raises(
          ValueError,
          match=r"Argument limit_sec should be a positive integer.",
      ):
          TimeLimit(limit_sec=-5)
  
      with pytest.raises(
          TypeError, match=r"Argument limit_sec should be an integer."
      ):
          TimeLimit(limit_sec="abc")
  
imports: import time
  import pytest
  from ignite.engine import Engine, Events
  from ignite.handlers import TimeLimit
label_desc: Use image node_id 1 for calling a global function with example usage: test_arg_validation() without return types