code: def recurrent_factory(
      create_core: Callable[[], hk.RNNCore],
      unroller,
  ) -> Callable[[], Recurrent]:
      return lambda: Recurrent(create_core(), unroller)
  
imports: from collections.abc import Sequence
  from typing import Any, Callable, NamedTuple
  import haiku
  import jax
  import jax.numpy
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: recurrent_factory(create_core, unroller) and returns: function