code: def tar_file_with_sym_link(tmp_path):
      import tarfile
  
      directory = tmp_path / "data_sym_link"
      directory.mkdir()
      path = directory / "tar_file_with_sym_link.tar"
      os.symlink("..", directory / "subdir", target_is_directory=True)
      with tarfile.TarFile(path, "w") as f:
          f.add(
              str(directory / "subdir"), arcname="subdir"
          )  # str required by os.readlink on Windows and Python < 3.8
      return path
  
file_path: datasets/tests/test_extract.py
imports: import os
  import zipfile
  import pytest
  from datasets.utils.extract import Bzip2Extractor, Extractor, GzipExtractor, Lz4Extractor, SevenZipExtractor, TarExtractor, XzExtractor, ZipExtractor, ZstdExtractor
  from .utils import require_lz4, require_py7zr, require_zstandard
label_desc: Use image node_id 4 for calling a global function with example usage: tar_file_with_sym_link(tmp_path) and returns: path