code: def unarynop_method(op):
      def test_unaryop(self):
          source = "c = %s b" % (op,)
          self.assertDepends(source, {("c", "b")}, {"b"}, {"c"})
  
      return test_unaryop
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import ast
  from ...asttools.visitors.graph_visitor import GraphGen
  from ...asttools.visitors.graph_visitor import DiGraph
  from ...asttools.tests import AllTypesTested, skip_networkx
label_desc: Use image node_id 2 for calling a global function with example usage: unarynop_method(op) and returns: test_unaryop