code: def test_call_raises_error_when_size_is_invalid(self) -> None:
      s = "23 9 12  34   90 1  "
  
      converter = StrToTensorConverter((5, 2), dtype=torch.int32)
  
      with pytest.raises(
          RuntimeError, match=r"^shape '\[5, 2\]' is invalid"
      ):
          converter(s)
  
file_path: fairseq2/tests/unit/data/text/test_str_to_tensor_converter.py
imports: from typing import Any, Optional, Sequence
  import pytest
  import torch
  from fairseq2.data.text.converters import StrToTensorConverter
  from fairseq2.typing import DataType
  from tests.common import assert_equal
label_desc: Use image node_id 9 for calling the TestStrToTensorConverter obj's underlying member method code with example usage: obj.test_call_raises_error_when_size_is_invalid() without return types