code: def parameters(*testcases):
      """like parameterized.parameters but tests show arg names.
  
      Only works for class methods without *args or **kwargs.
  
      Args:
        *testcases: The input to parameterized.parameters().
  
      Returns:
        A wrapper function which passes the arguments through as a dictionary.
      """
  
      def wrapper(fn):
          """Constructs and returns the arguments as a dictionary."""
          arg_names = inspect.getfullargspec(fn).args
          if arg_names[0] != "self":
              raise ValueError(
                  'First argument to test is expected to be "self", but is {}'.format(
                      arg_names[0]
                  )
              )
          arg_names = arg_names[1:]
  
          def to_arg_dict(testcase):
              if isinstance(testcase, dict):
                  return testcase
              testcase = tuple(testcase)
              if len(testcase) != len(arg_names):
                  raise ValueError(
                      "The number of arguments to parameterized test do not match the "
                      "number of expected arguments: {} != {}, arguments: {}, names: {}".format(
                          len(testcase),
                          len(arg_names),
                          testcase,
                          arg_names,
                      )
                  )
              return dict(zip(arg_names, testcase))
  
          testcases_with_names = [
              to_arg_dict(testcase) for testcase in testcases
          ]
          return parameterized.parameters(*testcases_with_names)(fn)
  
      return wrapper
  
imports: from builtins import zip
  import functools
  import inspect
  import itertools
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import unittest
  from tensorflow.python import tf2
  from tensorflow.python.eager import context
label_desc: Use image node_id 2 for calling a global function with example usage: parameters() and returns: wrapper, parameterized, dict, testcase