code: def main(args):
      np.random.seed(args.seed)
      logging.info("Loading Features")
      if args.ssl_type == "wavlm":
          reader = WavLMFeatureReader(
              args.ckpt_path, args.layer, args.max_chunk
          )
      elif args.ssl_type == "hubert":
          reader = HubertFeatureReader(
              hubert_url=args.ckpt_path,
              hubert_dir_path=os.path.dirname(args.ckpt_path),
              layer=args.layer,
              sample_rate=args.sample_rate,
              max_chunk=args.max_chunk,
          )
      else:
          raise ValueError(f"Unknown feature type {args.feature_type}.")
  
      dump_feature(
          reader,
          in_filetype=args.in_filetype,
          rspecifier=args.rspecifier,
          out_filetype=args.out_filetype,
          wspecifier=args.wspecifier,
          write_num_frames=args.write_num_frames,
      )
  
file_path: espnet/egs2/librispeech/asr2/local/dump_hubert_or_wavlm_feature.py
imports: import argparse
  import logging
  import os
  import numpy
  from hubert_feature_loader import HubertFeatureReader
  from wavlm_feature_loader import WavLMFeatureReader
  from espnet.utils.cli_readers import file_reader_helper
  from espnet.utils.cli_utils import is_scipy_wav_style
  from espnet.utils.cli_writers import file_writer_helper
label_desc: Use image node_id 3 for calling a global function with example usage: main(args) without return types