code: def serialize(exp: export.Exported, vjp_order: int = 0) -> bytearray:
      """Serialize an Exported.
  
      Args:
        exp: the Exported to serialize.
        vjp_order: The maximum vjp order to include. E.g., the value 2 means that we
          serialize the primal functions and two orders of the `vjp` function. This
          should allow 2nd order reverse mode differentiation of the deserialized
          function. i.e., `jax.grad(jax.grad(f)).`
      """
      builder = flatbuffers.Builder(65536)
      exported = _serialize_exported(builder, exp, vjp_order)
      builder.Finish(exported)
      return builder.Output()
  
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 1 for calling a global function with example usage: serialize(exp, vjp_order) and returns: builder