code: def test_sharded_file_template_sharded_filepath():
      template = _FILENAME_TEMPLATE_MNIST_DEFAULT
      assert (
          os.fspath(
              template.sharded_filepath(shard_index=0, num_shards=1)
          )
          == "/path/mnist-train.tfrecord-00000-of-00001"
      )
      assert (
          os.fspath(
              template.sharded_filepath(shard_index=0, num_shards=25)
          )
          == "/path/mnist-train.tfrecord-00000-of-00025"
      )
      assert (
          os.fspath(
              template.sharded_filepath(shard_index=10, num_shards=25)
          )
          == "/path/mnist-train.tfrecord-00010-of-00025"
      )
  
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 16 for calling a global function with example usage: test_sharded_file_template_sharded_filepath() without return types