code: def test_sharded_file_template_template_and_properties():
      builder_dir = epath.Path("/my/path")
      template = naming.ShardedFileTemplate(
          template="data/mnist-{SPLIT}.{FILEFORMAT}-{SHARD_INDEX}",
          data_dir=builder_dir,
          # dataset_name is ignored because the template doesn't have {DATASET}
          dataset_name="imagenet",
          filetype_suffix="riegeli",
          split="test",
      )
      assert (
          os.fspath(
              template.sharded_filepath(shard_index=12, num_shards=100)
          )
          == "/my/path/data/mnist-test.riegeli-00012"
      )
  
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 26 for calling a global function with example usage: test_sharded_file_template_template_and_properties() without return types