code: def test_invalid_dependency(self):
      view = self.view
      with view.temp_flags(after="12345"):
          with raises_remote(error.InvalidDependency):
              view.apply_sync(lambda: 1)
  
imports: import time
  from itertools import count
  import pytest
  import ipyparallel
  from ipyparallel import error
  from .clienttest import ClusterTestCase, crash, raises_remote
label_desc: Use image node_id 17 for calling the TestLoadBalancedView obj's underlying member method code with example usage: obj.test_invalid_dependency() without return types