code: def _reconstruct_chunked_array(
      chunks: List["PicklableArrayPayload"], type_: "pyarrow.DataType"
  ) -> "pyarrow.ChunkedArray":
      """Restore a serialized Arrow ChunkedArray from chunks and type."""
      import pyarrow as pa
  
      # Reconstruct chunks from serialization payloads.
      chunks = [chunk.to_array() for chunk in chunks]
  
      return pa.chunked_array(chunks, type_)
  
imports: from dataclasses import dataclass
  import logging
  import os
  import sys
  from typing import List, Tuple, Optional, TYPE_CHECKING
label_desc: Use image node_id 9 for calling a global function with example usage: _reconstruct_chunked_array(chunks, type_) and returns: pa