code: def map(
      fn,
      sequences,
      non_sequences=None,
      truncate_gradient=-1,
      go_backwards=False,
      mode=None,
      name=None,
  ):
      """
      Similar behaviour as python's map.
  
      Parameters
      ----------
      fn
          The function that ``map`` applies at each iteration step
          (see ``scan`` for more info).
      sequences
          List of sequences over which ``map`` iterates
          (see ``scan`` for more info).
      non_sequences
          List of arguments passed to ``fn``. ``map`` will not iterate over
          these arguments (see ``scan`` for more info).
      truncate_gradient
          See ``scan``.
      go_backwards : bool
          Decides the direction of iteration. True means that sequences are parsed
          from the end towards the beginning, while False is the other way around.
      mode
          See ``scan``.
      name
          See ``scan``.
  
      """
      return scan(
          fn=fn,
          sequences=sequences,
          outputs_info=[],
          non_sequences=non_sequences,
          truncate_gradient=truncate_gradient,
          go_backwards=go_backwards,
          mode=mode,
          name=name,
      )
  
imports: from __future__ import absolute_import, print_function, division
  import logging
  from theano.scan_module import scan
label_desc: Use image node_id 1 for calling a global function with example usage: map(fn, sequences, non_sequences, truncate_gradient, go_backwards, mode, name) and returns: scan