code: def _deserialize_effect(eff: ser_flatbuf.Effect) -> core.Effect:
      effect_type_name = eff.TypeName().decode("utf-8")
      for (
          existing_effect_type
      ) in effects.lowerable_effects._effect_types:
          if str(existing_effect_type) == effect_type_name:
              try:
                  return existing_effect_type()
              except:
                  # TODO: add test
                  raise NotImplementedError(
                      f"deserializing effect {effect_type_name} that does not have a "
                      "nullary class constructor"
                  )
  
      raise NotImplementedError(
          f"cannot deserialize effect type {effect_type_name}"
      )
  
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 14 for calling a global function with example usage: _deserialize_effect(eff) and returns: existing_effect_type