code: def __getattr__(self, name):
      def func(event):
          self.called.append(name)
  
      return func
  
file_path: catboost/contrib/python/prompt-toolkit/py2/tests/test_key_binding.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.key_binding.input_processor import InputProcessor, KeyPress
  from prompt_toolkit.key_binding.registry import Registry
  from prompt_toolkit.keys import Keys
  import pytest
label_desc: Use image node_id 2 for calling the Handlers obj's underlying member method code with example usage: obj.__getattr__(name) and returns: func