code: def test_no_kwargs(self):
      with self.assertRaises(RuntimeError):
  
          @signature_has_traits
          class Foo(HasTraits):
              number1 = Int()
              number2 = Int()
  
              def __init__(self, arg1, arg2=None):
                  pass
  
file_path: catboost/contrib/python/traitlets/py3/tests/utils/test_decorators.py
imports: from inspect import Parameter, signature
  from unittest import TestCase
  from traitlets import HasTraits, Int, Unicode
  from traitlets.utils.decorators import signature_has_traits
label_desc: Use image node_id 5 for calling the TestExpandSignature obj's underlying member method code with example usage: obj.test_no_kwargs() without return types