code: def test_expect_types_custom_funcname(self):
      class Foo(object):
          @expect_types(__funcname="ArgleBargle", a=int)
          def __init__(self, a):
              self.a = a
  
      foo = Foo(1)
      self.assertEqual(foo.a, 1)
  
      for not_int in (str, float):
          with self.assertRaises(TypeError) as e:
              Foo(not_int(1))
          self.assertEqual(
              e.exception.args[0],
              "ArgleBargle() expected a value of type "
              "int for argument 'a', but got {t} instead.".format(
                  t=not_int.__name__,
              ),
          )
  
imports: from operator import attrgetter
  from types import FunctionType
  from unittest import TestCase
  from nose_parameterized import parameterized
  from numpy import arange, array, dtype
  import pytz
  from six import PY3
  from zipline.utils.preprocess import call, preprocess
  from zipline.utils.input_validation import expect_dimensions, ensure_timezone, expect_element, expect_dtypes, expect_types, optional, optionally
label_desc: Use image node_id 10 for calling the PreprocessTestCase obj's underlying member method code with example usage: obj.test_expect_types_custom_funcname() without return types