code: def is_recurrent_link(layer):
      """Return True iff a given layer is recurrent and supported by ChainerRL.
  
      Args:
          layer (callable): Any callable object.
  
      Returns:
          bool: True iff a given layer is recurrent and supported by ChainerRL.
      """
      return isinstance(
          layer,
          (
              L.NStepLSTM,
              L.NStepGRU,
              L.NStepRNNReLU,
              L.NStepRNNTanh,
              StatelessRecurrent,
          ),
      )
  
imports: from cached_property import cached_property
  import chainer
  import chainer.functions
  import chainer.links
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: is_recurrent_link(layer) and returns: isinstance