def METHOD_NAME(
    self,
    mock_get_supported: mock.Mock,
    py_version_info: Optional[Tuple[int, ...]],
    expected_version: Optional[str],
) -> None:
    mock_get_supported.return_value = ["tag-1", "tag-2"]
    target_python = TargetPython(py_version_info=py_version_info)
    actual = target_python.get_sorted_tags()
    assert actual == ["tag-1", "tag-2"]
    actual = mock_get_supported.call_args[1]["version"]
    assert actual == expected_version
    # Check that the value was cached.
    assert target_python._valid_tags == ["tag-1", "tag-2"]