code: def test_image_feature_type_to_arrow():
      features = Features({"image": Image()})
      assert features.arrow_schema == pa.schema(
          {"image": Image().pa_type}
      )
      features = Features(
          {"struct_containing_an_image": {"image": Image()}}
      )
      assert features.arrow_schema == pa.schema(
          {
              "struct_containing_an_image": pa.struct(
                  {"image": Image().pa_type}
              )
          }
      )
      features = Features({"sequence_of_images": Sequence(Image())})
      assert features.arrow_schema == pa.schema(
          {"sequence_of_images": pa.list_(Image().pa_type)}
      )
  
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 4 for calling a global function with example usage: test_image_feature_type_to_arrow() without return types