code: def remote(view, block=None, **flags):
      """Turn a function into a remote function.
  
      This method can be used for map::
  
          In [1]: @remote(view,block=True)
             ...: def func(a):
             ...:    pass
      """
  
      def remote_function(f):
          return RemoteFunction(view, f, block=block, **flags)
  
      return remote_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 1 for calling a global function with example usage: remote(view, block) and returns: remote_function, RemoteFunction