code: def test_parsers_quarter_invalid(date_str):
      if date_str == "6Q-20":
          msg = (
              "Incorrect quarterly string is given, quarter "
              f"must be between 1 and 4: {date_str}"
          )
      else:
          msg = f"Unknown datetime string format, unable to parse: {date_str}"
  
      with pytest.raises(ValueError, match=msg):
          parsing.parse_datetime_string_with_reso(date_str)
  
imports: from datetime import datetime
  import re
  from dateutil.parser import parse
  from dateutil.tz import tzlocal
  from hypothesis import given
  import numpy
  import pytest
  from pandas._libs.tslibs import parsing, strptime
  from pandas._libs.tslibs.parsing import parse_datetime_string_with_reso
  from pandas.compat import ISMUSL, is_platform_windows
  import pandas.util._test_decorators
  import pandas._testing
  from pandas._testing._hypothesis import DATETIME_NO_TZ
label_desc: Use image node_id 10 for calling a global function with example usage: test_parsers_quarter_invalid(date_str) without return types