code: def test_require_function(self):
      @ipp.interactive
      def bar(a):
          return func(a)
  
      @ipp.require(func)
      @ipp.interactive
      def bar2(a):
          return func(a)
  
      self.client[:].clear()
      with raises_remote(NameError):
          self.view.apply_sync(bar, 5)
      ar = self.view.apply_async(bar2, 5)
      assert ar.get(5) == func(5)
  
file_path: ipyparallel/ipyparallel/tests/test_dependency.py
imports: import ipyparallel
  from ipyparallel.serialize import can, uncan
  from ipyparallel.util import interactive
  from .clienttest import ClusterTestCase, raises_remote
label_desc: Use image node_id 10 for calling the TestDependency obj's underlying member method code with example usage: obj.test_require_function() and returns: func, func