code: def test_construction_invalid(period, freq):
      kwargs = {freq: period}
      with pytest.raises(ValueError):
          DateOffset(**kwargs)
  
imports: import re
  import numpy
  import pytest
  from cudf import DateOffset
label_desc: Use image node_id 1 for calling a global function with example usage: test_construction_invalid(period, freq) without return types