code: def imagenet_extract(file, path, small=False):
      with tarfile.open(name=file) as tar:
          if small:  # Show progressbar only for big files
              for member in tar.getmembers():
                  tar.extract(path=path, member=member)
          else:
              for member in tqdm(
                  iterable=tar.getmembers(), total=len(tar.getmembers())
              ):
                  tar.extract(path=path, member=member)
          tar.close()
  
imports: from tinygrad.helpers import fetch
  from pathlib import Path
  from tqdm import tqdm
  import tarfile, os
label_desc: Use image node_id 1 for calling a global function with example usage: imagenet_extract(file, path, small) without return types