code: def test_parse_datetime_string_with_reso_invalid_type():
      # Raise on invalid input, don't just return it
      msg = "Argument 'date_string' has incorrect type (expected str, got tuple)"
      with pytest.raises(TypeError, match=re.escape(msg)):
          parse_datetime_string_with_reso((4, 5))
  
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 4 for calling a global function with example usage: test_parse_datetime_string_with_reso_invalid_type() without return types