code: def __prepare_metadata(
      skip_duration, sample: Tuple[str, str]
  ) -> dict:
      """
      Creates the manifest entry for a file.
  
      Args:
          skip_duration: Whether to skip the computation of duration
          sample: Tuple of label and filepath
  
      Returns:
          Manifest entry of the file
      """
      label, audio_path = sample
      return json.dumps(
          {
              "audio_filepath": audio_path,
              "duration": 0.0
              if skip_duration
              else librosa.core.get_duration(filename=audio_path),
              "command": label,
          }
      )
  
imports: import argparse
  import glob
  import json
  import logging
  import os
  import re
  import tarfile
  import urllib.request
  from collections import defaultdict
  from functools import partial
  from multiprocessing import Pool
  from typing import Dict, List, Set, Tuple
  import librosa
  import numpy
  import soundfile
  from tqdm import tqdm
label_desc: Use image node_id 8 for calling a global function with example usage: __prepare_metadata(skip_duration, sample) and returns: json