code: def is_file_truncated(wav_filename, wav_filesize):
      with wave.open(wav_filename, mode="rb") as fin:
          assert fin.getframerate() == 16000
          assert fin.getsampwidth() == 2
          assert fin.getnchannels() == 1
  
          header_duration = fin.getnframes() / fin.getframerate()
          filesize_duration = (wav_filesize - 44) / 16000 / 2
  
      return header_duration != filesize_duration
  
file_path: DeepSpeech/bin/import_magicdata.py
imports: import glob
  import os
  import tarfile
  import wave
  import pandas
  from deepspeech_training.util.importers import get_importers_parser
label_desc: Use image node_id 2 for calling a global function with example usage: is_file_truncated(wav_filename, wav_filesize) and returns: unknown