code: def skip_not_in_params(property):
      def decorator(f):
          @functools.wraps(f)
          def new_f(self, *args, **kwargs):
              if property not in self.params.keys():
                  self.skipTest(
                      "'%s' does not exist in params.keys()." % property
                  )
              else:
                  f(self, *args, **kwargs)
  
          return new_f
  
      return decorator
  
imports: import functools
  import itertools
  import operator
  import numpy
  from chainer import distributions
  from chainer import testing
  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_params(property) and returns: decorator, new_f