code: def from_pyarrow_lists(
      type_buffer: pa.ListArray,
      all_offsets: pa.ListArray,
      point_coords: pa.ListArray,
      mpoint_coords: pa.ListArray,
      line_coords: pa.ListArray,
      polygon_coords: pa.ListArray,
  ) -> pa.lib.UnionArray:
      type_buffer = type_buffer
      all_offsets = all_offsets
      children = [
          point_coords,
          mpoint_coords,
          line_coords,
          polygon_coords,
      ]
  
      return pa.UnionArray.from_dense(
          type_buffer,
          all_offsets,
          children,
          ["points", "mpoints", "lines", "polygons"],
      )
  
imports: from typing import List
  import pyarrow
label_desc: Use image node_id 2 for calling a global function with example usage: from_pyarrow_lists(type_buffer, all_offsets, point_coords, mpoint_coords, line_coords, polygon_coords) and returns: pa