code: def test_dataset_with_image_feature_map_undecoded(shared_datadir):
      image_path = str(shared_datadir / "test_image_rgb.jpg")
      data = {"image": [image_path]}
      features = Features({"image": Image(decode=False)})
      dset = Dataset.from_dict(data, features=features)
  
      def assert_image_example_undecoded(example):
          assert example["image"] == {"path": image_path, "bytes": None}
  
      dset.map(assert_image_example_undecoded)
  
      def assert_image_batch_undecoded(batch):
          for image in batch["image"]:
              assert image == {"path": image_path, "bytes": None}
  
      dset.map(assert_image_batch_undecoded, batched=True)
  
imports: import os
  import tarfile
  import warnings
  import numpy
  import pandas
  import pyarrow
  import pytest
  from datasets import Dataset, Features, Image, Sequence, Value, concatenate_datasets, load_dataset
  from datasets.features.image import encode_np_array, image_to_bytes
  from ..utils import require_pil
label_desc: Use image node_id 24 for calling a global function with example usage: test_dataset_with_image_feature_map_undecoded(shared_datadir) without return types