code: def test_patma_invalid() -> None:
      source, expected = read_data(
          "miscellaneous", "pattern_matching_invalid"
      )
      mode = black.Mode(target_versions={black.TargetVersion.PY310})
      with pytest.raises(black.parsing.InvalidInput) as exc_info:
          assert_format(source, expected, mode, minimum_version=(3, 10))
  
      exc_info.match("Cannot parse: 10:11")
  
file_path: black/tests/test_format.py
imports: from dataclasses import replace
  from typing import Any, Iterator
  from unittest.mock import patch
  import pytest
  import black
  from black.mode import TargetVersion
  from tests.util import all_data_cases, assert_format, dump_to_stderr, read_data, read_data_with_mode
label_desc: Use image node_id 6 for calling a global function with example usage: test_patma_invalid() without return types