code: def bz2_csv_path(csv_path, tmp_path_factory):
      import bz2
  
      path = tmp_path_factory.mktemp("data") / "dataset.csv.bz2"
      with open(csv_path, "rb") as f:
          data = f.read()
      # data = bytes(FILE_CONTENT, "utf-8")
      with bz2.open(path, "wb") as f:
          f.write(data)
      return path
  
imports: import contextlib
  import csv
  import json
  import os
  import sqlite3
  import tarfile
  import textwrap
  import zipfile
  import pyarrow
  import pyarrow.parquet
  import pytest
  import datasets
  import datasets.config
label_desc: Use image node_id 18 for calling a global function with example usage: bz2_csv_path(csv_path, tmp_path_factory) and returns: path