code: def test_filename_template_to_regex():
      assert (
          naming._filename_template_to_regex("{DATASET}")
          == r"(?P<dataset_name>[a-zA-Z][\w]*)"
      )
      assert naming._filename_template_to_regex(
          naming.DEFAULT_FILENAME_TEMPLATE
      ) == (
          r"(?P<dataset_name>[a-zA-Z][\w]*)"
          r"-(?P<split>(\w|-)+)"
          r"\.(?P<filetype_suffix>\w+)"
          r"-(?P<shard_index>\d{5,})-of-(?P<num_shards>\d{5,})"
      )
  
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 30 for calling a global function with example usage: test_filename_template_to_regex() without return types