code: def skip_not_in_test_target(test_target):
      def decorator(f):
          @functools.wraps(f)
          def new_f(self, *args, **kwargs):
              if test_target not in self.test_targets:
                  self.skipTest(
                      "'%s' does not exist in test_targets."
                      % test_target
                  )
              else:
                  f(self, *args, **kwargs)
  
          return new_f
  
      return decorator
  
imports: import functools
  import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer.testing import array
  from chainer.testing import attr
  from chainer import utils
label_desc: Use image node_id 1 for calling a global function with example usage: skip_not_in_test_target(test_target) and returns: decorator, new_f