code: def parallel(view, dist="b", block=None, ordered=True, **flags):
      """Turn a function into a parallel remote function.
  
      This method can be used for map::
  
          In [1]: @parallel(view, block=True)
             ...: def func(a):
             ...:    pass
      """
  
      def parallel_function(f):
          return ParallelFunction(
              view, f, dist=dist, block=block, ordered=ordered, **flags
          )
  
      return parallel_function
  
file_path: ipyparallel/ipyparallel/client/remotefunction.py
imports: import sys
  import warnings
  from inspect import signature
  from decorator import decorator
  from ..serialize import PrePickled
  from .None import map
  from .asyncresult import AsyncMapResult
label_desc: Use image node_id 2 for calling a global function with example usage: parallel(view, dist, block, ordered) and returns: parallel_function, ParallelFunction