code: def chunked_arrays(
      draw, type, min_chunks=0, max_chunks=None, chunk_size=None
  ):
      if isinstance(type, st.SearchStrategy):
          type = draw(type)
  
      # TODO(kszucs): remove it, field metadata is not kept
      h.assume(not pa.types.is_struct(type))
  
      chunk = arrays(type, size=chunk_size)
      chunks = st.lists(chunk, min_size=min_chunks, max_size=max_chunks)
  
      return pa.chunked_array(draw(chunks), type=type)
  
imports: import datetime
  import sys
  import pytest
  import hypothesis
  import hypothesis.strategies
  import hypothesis.extra.numpy
  import numpy
  import pyarrow
label_desc: Use image node_id 10 for calling a global function with example usage: chunked_arrays(draw, type, min_chunks, max_chunks, chunk_size) and returns: pa