code: def _generate_test(test_func, **kwargs):
      def test(self):
          test_func(self, **kwargs)
  
      return test
  
imports: import cufflinks
  import pandas
  import numpy
  import unittest
  from nose.tools import assert_equals
label_desc: Use image node_id 17 for calling a global function with example usage: _generate_test(test_func) and returns: test