code: def test_dataset_with_image_feature_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)
      item = dset[0]
      assert item.keys() == {"image"}
      assert item["image"] == {"path": image_path, "bytes": None}
      batch = dset[:1]
      assert batch.keys() == {"image"}
      assert len(batch["image"]) == 1
      assert batch["image"][0] == {"path": image_path, "bytes": None}
      column = dset["image"]
      assert len(column) == 1
      assert column[0] == {"path": image_path, "bytes": None}
  
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 22 for calling a global function with example usage: test_dataset_with_image_feature_undecoded(shared_datadir) without return types