code: def main(
      tsv_dir,
      split,
      ckpt_path,
      layer,
      nshard,
      rank,
      feat_dir,
      max_chunk,
  ):
      reader = Wav2Vec2FeatureReader(ckpt_path, layer, max_chunk)
      generator, num = get_path_iterator(
          f"{tsv_dir}/{split}.tsv", nshard, rank
      )
      dump_feature(
          reader, generator, num, split, nshard, rank, feat_dir
      )
  
file_path: fairseq/examples/hubert/simple_kmeans/dump_w2v2_feature.py
imports: import logging
  import os
  import sys
  import fairseq
  import soundfile
  import torch
  import torch.nn.functional
  from feature_utils import get_path_iterator, dump_feature
label_desc: Use image node_id 1 for calling a global function with example usage: main(tsv_dir, split, ckpt_path, layer, nshard, rank, feat_dir, max_chunk) without return types