def METHOD_NAME(self):
    # Issue 1522237
    class MyLocal(self._local):
        def __init__(self, *args, **kwargs):
            pass
    MyLocal(a=1)
    MyLocal(1)
    self.assertRaises(TypeError, self._local, a=1)
    self.assertRaises(TypeError, self._local, 1)