code: def _serialize_array(
      builder: flatbuffers.Builder,
      serialize_one: Callable[[flatbuffers.Builder, T], int],
      elements: Sequence[T],
  ) -> int:
      element_offsets = [serialize_one(builder, e) for e in elements]
      ser_flatbuf.PyTreeDefStartChildrenVector(
          builder, len(element_offsets)
      )
      for sc in reversed(element_offsets):
          builder.PrependUOffsetTRelative(sc)
      return builder.EndVector()
  
imports: from typing import Callable, TypeVar
  from collections.abc import Sequence
  from jax._src import core
  from jax._src import dtypes
  from jax._src import effects
  from jax._src import tree_util
  from jax._src.lib import xla_client
  from jax.experimental.export import serialization_generated
  from jax.experimental.export import _export
  from jax.experimental import export
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _serialize_array(builder, serialize_one, elements) and returns: builder