code: def _serialize_disabled_safety_check(
      builder: flatbuffers.Builder, check: export.DisabledSafetyCheck
  ) -> int:
      custom_call_target_str = check.is_custom_call()
      custom_call_target = None
      if custom_call_target_str is not None:
          kind = ser_flatbuf.DisabledSafetyCheckKind.custom_call
          custom_call_target = builder.CreateString(
              custom_call_target_str
          )
      elif check == export.DisabledSafetyCheck.platform():
          kind = ser_flatbuf.DisabledSafetyCheckKind.platform
      elif check == export.DisabledSafetyCheck.shape_assertions():
          kind = ser_flatbuf.DisabledSafetyCheckKind.shape_assertions
      else:
          raise NotImplementedError(
              f"serializing DisabledSafetyCheck: {check}"
          )
  
      ser_flatbuf.DisabledSafetyCheckStart(builder)
      ser_flatbuf.DisabledSafetyCheckAddKind(builder, kind)
      if custom_call_target is not None:
          ser_flatbuf.DisabledSafetyCheckAddCustomCallTarget(
              builder, custom_call_target
          )
      return ser_flatbuf.DisabledSafetyCheckEnd(builder)
  
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 15 for calling a global function with example usage: _serialize_disabled_safety_check(builder, check) and returns: ser_flatbuf