code: def extract_dataset(dataset_name: str):
      dataset_folder = default_dataset_path / dataset_name
  
      if os.path.exists(dataset_folder):
          logging.info(
              f"found local file in {dataset_folder}, skip extracting"
          )
          return
  
      compressed_data_path = Path("datasets")
      tf = tarfile.open(
          compressed_data_path / (dataset_name + ".tar.gz")
      )
      tf.extractall(default_dataset_path)
  
imports: from collections import OrderedDict
  import numpy
  import os
  import logging
  from typing import NamedTuple
  import pandas
  from pathlib import Path
  import tarfile
  from gluonts.dataset.common import Dataset, load_datasets
  from gluonts.dataset.repository import default_dataset_path
label_desc: Use image node_id 1 for calling a global function with example usage: extract_dataset(dataset_name) without return types