code: def test_filename_info_invalid():
      filename = "mnist-train.tfrecord-000-of-001"  # Wrong shard number
      assert not naming.FilenameInfo.is_valid(filename)
      with pytest.raises(ValueError, match="Could not parse filename"):
          naming.FilenameInfo.from_str(filename)
  
imports: import os
  from absl.testing import parameterized
  from etils import epath
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import splits
label_desc: Use image node_id 12 for calling a global function with example usage: test_filename_info_invalid() without return types