class_docstr: Parameterize a test case::
  
  class TestInt(object):
      @parameterized([
          ("A", 10),
          ("F", 15),
          param("10", 42, base=42)
      ])
      def test_int(self, input, expected, base=16):
          actual = int(input, base=base)
          assert_equal(actual, expected)
  
  @parameterized([
      (2, 3, 5)
      (3, 5, 8),
  ])
  def test_add(a, b, expected):
      assert_equal(a + b, expected)
class_docstr_tok: ["Parameterize","a","test","case",":",":","class","TestInt","(","object",")",":","@","parameterized","(","[","(","``","A","''",",","10",")",",","(","``","F","''",",","15",")",",","param","(","``","10","''",",","42",",","base=42",")","]",")","def","test_int","(","self",",","input",",","expected",",","base=16",")",":","actual","=","int","(","input",",","base=base",")","assert_equal","(","actual",",","expected",")","@","parameterized","(","[","(","2",",","3",",","5",")","(","3",",","5",",","8",")",",","]",")","def","test_add","(","a",",","b",",","expected",")",":","assert_equal","(","a","+","b",",","expected",")"]
code: def param_as_standalone_func(cls, p, func, name):
      if inspect.iscoroutinefunction(func):
  
          @wraps(func)
          async def standalone_func(*a, **kw):
              return await func(*(a + p.args), **p.kwargs, **kw)
  
      else:
  
          @wraps(func)
          def standalone_func(*a, **kw):
              return func(*(a + p.args), **p.kwargs, **kw)
  
      standalone_func.__name__ = name
  
      # place_as is used by py.test to determine what source file should be
      # used for this test.
      standalone_func.place_as = func
  
      # Remove __wrapped__ because py.test will try to look at __wrapped__
      # to determine which parameters should be used with this test case,
      # and obviously we don't need it to do any parameterization.
      try:
          del standalone_func.__wrapped__
      except AttributeError:
          pass
      return standalone_func
  
imports: import re
  import sys
  import inspect
  import warnings
  from typing import Iterable
  from functools import wraps
  from types import MethodType
  from collections import namedtuple
  from unittest import TestCase
label_desc: Use image node_id 9 for calling the parameterized obj's underlying member method code with example usage: obj.param_as_standalone_func(cls, p, func, name) and returns: standalone_func, unknown, func