code: def test_shard_instructions_for_split():
      split_info = splits_lib.SplitInfo(
          name="train",
          shard_lengths=[1, 2, 3],
          num_bytes=1,
          filename_template=naming.ShardedFileTemplate(
              data_dir=epath.Path("/in"),
              dataset_name="ds",
              split="train",
              filetype_suffix="tfrecord",
          ),
      )
      in_file_adapter = file_adapters.TfRecordFileAdapter
      out_file_adapter = file_adapters.ArrayRecordFileAdapter
      actual = convert_format_utils._shard_instructions_for_split(
          split_info=split_info,
          out_file_format=file_adapters.FileFormat.ARRAY_RECORD,
          out_path=epath.Path("/out"),
          in_file_adapter=in_file_adapter,
          out_file_adapter=out_file_adapter,
      )
      assert actual == [
          convert_format_utils.ShardInstruction(
              in_path=epath.Path(
                  "/in/ds-train.tfrecord-00000-of-00003"
              ),
              in_file_adapter=in_file_adapter,
              out_path=epath.Path(
                  "/out/ds-train.array_record-00000-of-00003"
              ),
              out_file_adapter=out_file_adapter,
          ),
          convert_format_utils.ShardInstruction(
              in_path=epath.Path(
                  "/in/ds-train.tfrecord-00001-of-00003"
              ),
              in_file_adapter=in_file_adapter,
              out_path=epath.Path(
                  "/out/ds-train.array_record-00001-of-00003"
              ),
              out_file_adapter=out_file_adapter,
          ),
          convert_format_utils.ShardInstruction(
              in_path=epath.Path(
                  "/in/ds-train.tfrecord-00002-of-00003"
              ),
              in_file_adapter=in_file_adapter,
              out_path=epath.Path(
                  "/out/ds-train.array_record-00002-of-00003"
              ),
              out_file_adapter=out_file_adapter,
          ),
      ]
  
imports: from etils import epath
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.scripts.cli import convert_format_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_shard_instructions_for_split() without return types