code: def _load_tarfile(key):
      """Internal method for loading a tar file"""
      base_path = abspath(dirname(__file__))
      file_path = join(base_path, "data", key)
      with tarfile.open(file_path, "r:*") as tar:
          csv_path = tar.getnames()[0]  # there is only one file per tar
          return pd.read_csv(tar.extractfile(csv_path), header=0)
  
file_path: pmdarima/pmdarima/datasets/_base.py
imports: import os
  from os.path import abspath, dirname, join, expanduser
  import numpy
  import pandas
  import urllib3
  import tarfile
  from ..compat.numpy import DTYPE
label_desc: Use image node_id 4 for calling a global function with example usage: _load_tarfile(key) and returns: pd