code: def test_dataset_with_audio_feature_map_is_decoded(shared_datadir):
      audio_path = str(shared_datadir / "test_audio_44100.wav")
      data = {"audio": [audio_path], "text": ["Hello"]}
      features = Features({"audio": Audio(), "text": Value("string")})
      dset = Dataset.from_dict(data, features=features)
  
      def process_audio_sampling_rate_by_example(example):
          example["double_sampling_rate"] = (
              2 * example["audio"]["sampling_rate"]
          )
          return example
  
      decoded_dset = dset.map(process_audio_sampling_rate_by_example)
      for item in decoded_dset.cast_column(
          "audio", Audio(decode=False)
      ):
          assert item.keys() == {
              "audio",
              "text",
              "double_sampling_rate",
          }
          assert item["double_sampling_rate"] == 88200
  
      def process_audio_sampling_rate_by_batch(batch):
          double_sampling_rates = []
          for audio in batch["audio"]:
              double_sampling_rates.append(2 * audio["sampling_rate"])
          batch["double_sampling_rate"] = double_sampling_rates
          return batch
  
      decoded_dset = dset.map(
          process_audio_sampling_rate_by_batch, batched=True
      )
      for item in decoded_dset.cast_column(
          "audio", Audio(decode=False)
      ):
          assert item.keys() == {
              "audio",
              "text",
              "double_sampling_rate",
          }
          assert item["double_sampling_rate"] == 88200
  
imports: import os
  import tarfile
  import pyarrow
  import pytest
  from datasets import Dataset, concatenate_datasets, load_dataset
  from datasets.features import Audio, Features, Sequence, Value
  from ..utils import require_sndfile
label_desc: Use image node_id 26 for calling a global function with example usage: test_dataset_with_audio_feature_map_is_decoded(shared_datadir) and returns: example, batch