code: def __extract_file(filepath, data_dir):
      try:
          tar = tarfile.open(filepath)
          tar.extractall(data_dir)
          tar.close()
      except Exception:
          print(
              f"Error while extracting {filepath}. Already extracted?"
          )
  
file_path: NeMo/scripts/dataset_processing/tts/ljspeech/get_data.py
imports: import argparse
  import json
  import tarfile
  import urllib.request
  from pathlib import Path
  import sox
  import wget
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: __extract_file(filepath, data_dir) without return types